Create Custom Properties for Sharepoint WebParts
By Perry
This shows how to Create Custom Properties for Sharpoint WebParts?
Follow below procedure to do this:
1. To create a custom webpart, see my previous FAQ listed below.
2. Create member variable and associate public property.
3. For each property to be edited using webpart property editor, apply following
attributes:
[WebBrowsable(True)]
[WebDisplayName("Mt text")]
[WebDescription("your desc")]
[Personalizable(PersonalizationScope.Shared)] --> Only administrator can modify.
You can set it to "users" as well.
Public string myPublicString
{
get { return str}
set { str + value}
}
string str + "my string";
Related FAQs
Difference between Sharepoint Site and Application pages.
This shows how to Create Mailbox and configuring Sharepoint outgoing email settings?
A brief path for administering sharepoint sites.
This shows procedure for Configuring Site level security in sharepoint 2007.
I have just started learning Sharepoint 2007 so I would be putting my thoughts here whenever I came to know something interesting.
Configure IE for NTML authentication.
Create Custom Properties for Sharepoint WebParts (1340 Views)