?
Web part(s) used to give consistent, easy to navigate, easy customization and personalization. Web parts can divide web page into multiple parts like you want your page to show different inter-related features like entertainment news, weather news, sports news, business news.
There are 3 types of web parts.
- asp.net web part (inherit from asp.net 2.0+ web part class, imported via .webpart file)
- windows sharepoint services WSS web part (inherit from WSS web part class, imported via .dwp file)
- hybrid web part (inherit from WSS web part class, imported via, .webpart file, take advantage of WSS and asp.net web part features)
How to create custom web part for sharepoint?
- Create a class library type of project in Visual studio
- Inherit Class from System.Web.UI.WebControls.WebParts.WebPart after adding System.Web assembly reference
- Override method(s) like OnPreRender, RenderContents
- Compile/Build your class library project into C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN
- Configure DLL into web.config (probably would be in C:\Inetpub\wwwroot\wss\VirtualDirectories\46388) and give reference into SafeControl List of your Web part (assembly, namespace, Typename)
- Go back to site collection, click on Site Action menu to expand at top right and then click on Site Settings.
- Click on Web Part Gallery and get Web part gallery page
- Click on New button and get New Web Parts page
- Check your web part (namespace, typename) and click on Populate Gallery button
- Go back to Site collection page where you want to add your web part
- Click on Site Actions menu and then select Edit Page
- Click on Add web part and get list of installed web parts in popup
- Select yours and enjoyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy!
is it more difficult than ROCKET SCIENCE.
recommended link : http://www.codeproject.com/KB/sharepoint/WebPartIntro.aspx




