| Register
Monday, December 01, 2008
SharePoint Forums
SearchForum Home
     
  SharePoint Development  Begining Web Part Development  this.attributes...
 this.attributes.add not working as expected
 
millerthegorilla
7 posts
4th
Joined
6/17/2008

this.attributes.add not working as expected
Posted: 17 Jun 08 2:10 AM

Hi - I've added the following to my webpart:

this.attributes.add("onmousedown","bob()");

and this in Render():

this.attributes.addattributes(writer);

However, when I check the html for the page, the onmousedown attribute has been added to the webpart below mine so when I click on the webpart below, the function bob() is being called.  Am I doing something wrong?

  SharePoint Development  Begining Web Part Development  this.attributes...
(c) 2006 SharePoint Forums   |  Privacy Statement  |  Terms Of Use