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
This shows complete procedure to create and integrate custom webpart in Sharepoint 2007.
This shows how to Configure List and Item level security in Sharepoint 2007?
This shows procedure for Configuring Site level security in sharepoint 2007.
This shows how to Create Mailbox and configuring Sharepoint outgoing email settings?
This thread shows how to Create Active Directory User accounts and Groups.
I tried to explain why form based authentication is not supported and how to configure it using third party tools.
Create Custom Properties for Sharepoint WebParts (811 Views)