Sunday, August 22, 2010

Dynamic WebParts in asp.net 2.0?

hi,


can any one help in giving me a totally dynamic idear of how to make web parts[ starting from Webpartmanage, WebpartZone, webParts and all other items in it.]





Thanks


take care

Dynamic WebParts in asp.net 2.0?
1) The WebPartManager control is an ASP.NET server control that completely manages the state of the zones and the content placed in the zones on a per-user basis. This control, which has no visual aspect, can add and delete items contained within each zone of the page.





2) After you place the WebPartManager control on the page, the next step is to create zones from which you can utilize the Portal Framework. Web zones define specific rows or columns as individual content areas managed by the WebPartManager.





3) Other related stuff:


In order to include items within the templated WebPartZone control, you must include a %26lt;ZoneTemplate%26gt;


element.


Working with the WebPartManager class either directly or through the use of the WebPartManager server control, you can have the mode of the page changed. Changing the mode of the page being viewed allows the user to add, move, or change the pages they are working with.





I suggest you read:


Wrox Professional Web Parts and Custom Controls with ASP.NET 2.0 - Petery Vogel





Hope this helps.


No comments:

Post a Comment