Getting Started With ASP.NET 2.0 Web Parts in Beta 2
Here's a small tip for Patrick,
since he's going to deliver a TechEd Session on Web Parts in ASP.NET 2.0. :-) An
important thing in your web part pages is the functionality to switch to design
mode (at run-time), so your users can change properties, location, connections
etc. for the web parts. In the pre-Beta2 age, we had the WebPartPageMenu control
for that, but in Beta 2 this control has
been removed. The QuickStarts
seem to be using a custom control that is simulating this behavior, but they
don't provide the source for it. Luckily it's quite easy to re-create, you can
switch by using WebPartManager1.DisplayMode =
WebPartManager.DesignDisplayMode; and WebPartManager1.DisplayMode = WebPartManager.BrowseDisplayMode;.
Check out Darren's
post for more info!