Fully Featured WebPart in SharePoint
In this article I am going to explain you that how to create web part properties which is also called as fully featured webpart.
Web Part Property:
The first thing that you can do to enhance your Web Parts is add properties to your Web Part classes. This allows you to provide either Web Part administrators or users of the Web Part the ability to very easily apply custom settings to Web Parts on the page.
Your Web Part properties will render differently, depending on how they are declared.
Primarily, your properties will render a TextBox so that you can type in a text value for your property and it will get saved.
In this article I will add few custom properties with type of text, int, dropdown. To do so I will be using CreateChildControl method.
Solution Structure Image
Deploy web part using feature:-
Please refer my other article: create and deploy webpart using feature/
April 9, 2012
В· Infoyen В· No Comments
Tags: Create Custom Web Part in SharePoint, Creating a SharePoint 2007 Web Part with Custom Properties, Custom Properties in a SharePoint web part, Custom Web Part Properties, Developing and Deploying Custom Web Parts for SharePoint, Developing Sharepoint 2007 Custom Web Parts, How to add Custom Properties to Custom Web Parts, How to use Web Part Custom Properties in SharePoint, MOSS, SharePoint, sharepoint web part development, SharePoint: Creating Custom Enterprise Search Web Parts, Web part custom property - dropdown list, Write Custom WebParts for SharePoint 2007 В· Posted in: MOSS, SharePoint, WebPart