all groups > asp.net building controls > june 2005 >
You're in the

asp.net building controls

group:

Sample Whidbey Web Part Code



Sample Whidbey Web Part Code cliffeh
6/14/2005 11:57:02 AM
asp.net building controls: Can anyone point me to some examples of Whidbey Web Parts being designed from
scratch. The documentation on this is still blank (eg.
http://msdn2.microsoft.com/library/t54h7hh7(en-us,vs.80).aspx).

Is the generally accepted way to create web parts just to create a user
control and then wrap it in a Web Part?

Thanks,
Re: Sample Whidbey Web Part Code Brock Allen
6/14/2005 12:24:37 PM
Here are the ASP.NET 2.0 quickstarts:

http://beta.asp.net/QUICKSTART/aspnet/doc/webparts/default.aspx

As for the UC vs. developing a custom WebPart control class... Depends upon
how much you need the control to be integrated into the WebParts infrastructure
-- IOW, how many user configurable properies does it need? If it's an existing
UserControl and all you need is the layout capability the UC approach is
fine, IMO. Once it's no longer fine, then you'll need to look at writing
a custom Web Part.

-Brock
DevelopMentor
http://staff.develop.com/ballen



[quoted text, click to view]


AddThis Social Bookmark Button