Introduction
Web Parts is a feature in ASP.NET for building highly customizable portal-style pages. Webparts allow you to create small windows of information. Each small window can display a piece of information. Users can customize Web Parts pages by changing the page layout, adding and removing Web Parts, editing Web Parts properties, establishing connections between Web Parts, and more.
Main
Building Web Parts
There are two basic ways to create a Web Part. You use Microsoft ASP.NET control as a Web Part or you can build a custom control that derives from the base WebPart class. The advantage of this second method of creating a Web Part is that it provides you with additional options for customizing the appearance and behavior of the Web Part.
Create a new project. Add a new page, WebParts.aspx, to your project, and add a link to that page on your default.aspx page. In this Example actually you are required to have a membership functionality in your web project.
Creating Zones
A page that uses Web Parts is divided into zones areas of the page that can contain content. Open the WebParts section of your Toolbox, and drag a WebPartManager onto your page, as shown below.

WebPartManager is used to track and coordinate all the Web Part controls on the page. It will not be visible when the page is running. Add a new table, with two rows and three columns. Drag a WebPartZone into each of the six table cells. Resize the WebPartZone controls as appropriate to the cell.

Adding Controls To Zones
Set the heading on the first Web Part control to News and drag a Label into the zone as shown below.

Change the title of the label to Today news and the text to Kaspersky looking to invest in Asia. Switch back to design view and drag a list box into WebPartZone3. Set the header text for the WebPartZone to "Sponsors". Click on the list box, and then on its smart tag to open the ListItemCollection Editor. Add a few items to the list box. Back in source view, set the Title property to "For Sale" and run the application. You'll need to log in using one of the accounts using membership. Click on the link to the Web Parts page. You should see below are two Web Parts, complete with Minimize and Close commands.

Minimizing and Restoring
Click on the Minimize tag and the contents of the Web Part collapses, and the link changes from "Minimize" to "Restore".

Exit the application. Start it again and sign back in, and navigate back to these pages. The minimized zone remains minimized. You'll find that the Web Parts are closely tied with personalization, and its custom properties are stored in database.
Allow Your Users to Move the Web Parts
Web Parts make it easy for you to allow the user to rearrange the page, placing, for example, News on the right and For Sale on the left. To do so, drag a WebPartPageMenu control into your page.

Once this is in place, run the application. Log in and navigate to the Web Parts page. Click the drop-down list in the Web Parts Page Manager to set it to Design Page Layout and click the Change button. All of the WebPartZones become visible, and you can drag and drop WebParts from one zone to another by clicking on their titles and dragging them to different zones, in which you see the Today's News Web Part being dragged from zone 1 to zone 4.
When you finished, return to the Web Parts Page Manager, set it to Browse This Page and click Change. The changes are reflected in the page. If you log into this page as another user no changes has been made it is only personalized on related user.
Conclusion
Web Parts provide you with the infrastructure you need for creating customizable Web applications, such as intranet portal applications. When you build a Web site with Web Parts and the Microsoft ASP.NET 2.0 Web Part Framework, either the Web site administrator or other users can easily customize the Web site.