SUMMARY

Building portal-style pages that contain multiple items of information and yet are neat, attractive, andmore importantcustomizable has been a complex task in the past. In ASP.NET 2.0, the new portal framework, which integrates Web Parts of different types into a single development model, makes it extremely easy to build these kinds of pages.

As we demonstrated in this chapter, by simply declaring a mix of several different types of Zone server controls plus a single WebPartManager instance on the page, you can create complex interactive layouts that require almost no server-side code. This includes enabling features for changing the layout of the page sections using drag and drop; changing the behavior and appearance of individual Web Parts; rolling up, closing, and/or hiding individual controls; and even being able to add new Web Parts to the page.

Then, if you want to expand the capabilities of the page, you can write code that reacts to events in the page and interacts with the various controls that implement the zones and Web Parts. While we didn't cover this topic in any detail, you can find lists of properties and methods in the SDK provided with ASP.NET or on-line.

Other features that we have not covered here in depth, mainly due to lack of space, include the following:

  • The ability to connect Web Parts together so that changes in one are reflected in another. For example, selecting an order row in one Web Part could automatically update the connected Web Part so that it displays details of that order.

  • The ability to export and import Web Parts (as XML documents), allowing them to be moved from one page to another and one application to another.

  • The ability to expose custom properties from a Web Part, which can then be configured in a PropertyGridEditorPart control declared within the EditorZone .

In the next chapter, we'll move on to look at how ASP.NET has evolved in version 2.0 to allow you to more easily accomplish some of the tasks that users found difficult in version 1.x. This includes things like cross-page posting and group validation.



A First Look at ASP. NET v. 2.0 2003
A First Look at ASP. NET v. 2.0 2003
ISBN: N/A
EAN: N/A
Year: 2004
Pages: 90

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net