Skip to main content

Posts

Showing posts from November, 2004

Creating a very simple WebPart using Whidbey

Web Parts are similar to that of an user controls. But what makes it different is "Customization". Yes webparts allow the users to customize the site by modifying (for ex: moving) controls around the page based on WebPartZones. "ASP.NET version 2.0 introduces new type of personalization called Page Personalization or Web Parts" Any ASP.NET server control can act as a Web Part but by creating a custom control derived from the WebPart class you gain access to advanced features. I tried out an very very simple web part sample and let me try and explain it here. I didn't even write a single line of code in code behind file for this sample. Mind you for more webparts we need to use code behind files :) Btw I used Visual Studio Beta for this testing purpose. Steps I followed 1. I expanded the "Tool box" and had a look at the "Webparts" section. As we have "Standard", "Html", "Webcontrols" etc., "Webparts" is