Lock down properties to only allow editing of custom properties

by Administrator 4. November 2008 14:54

To only allow users to edit custom web part properties you should override GetToolParts() as follows:

public override ToolPart[] GetToolParts()
{  
ToolPart[] toolparts = new ToolPart[0]; //empty array    
//add your own tool parts here     
return toolparts;
} 

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: ,

How To Tips

Add comment


 

  Country flag

biuquote
  • Comment
  • Preview
Loading



Powered by GoAstray.com