Summary


In this chapter you have looked at the several more advanced techniques for creating ASP.NET pages and Web sites, and saw these techniques in action in a demonstration Web site called PCSDemoSite.

First, you looked at how you can create reusable ASP.NET server controls using C#. You have seen how to create simple user controls from existing ASP.NET pages, as well as how to create custom controls from scratch. You also saw how the meeting room booker sample from the previous chapter can be reformatted as a user control.

Next you looked at master pages, and how you can provide a template for the pages of your Web site; another way to reuse code and simplify your development. In PCSDemoSite you saw a master page that included navigation Web server controls to enable users to move around the site, and laid the framework for themes. The themes you looked at later in the chapter are an excellent way to separate functionality from design, and can be a powerful accessibility technique.

You also took a brief look at security and saw how you can implement forms-based authentication on your Web sites with the minimum of effort.

You have only scratched the surface of what is possible in ASP.NET 2.0. For example, you can do a whole lot more with custom controls. It would have been interesting to discuss templates and data-binding, and how to create controls with this in mind. However, with the information in this chapter you should be able to start building (and experimenting with) your own custom controls, as well as all the other techniques discussed. For more details on ASP.NET, check out Professional ASP.NET 1.1 (Wiley Publishing, Inc., ISBN: 0-7645-5890-0).




Professional C# 2005
Pro Visual C++ 2005 for C# Developers
ISBN: 1590596080
EAN: 2147483647
Year: 2005
Pages: 351
Authors: Dean C. Wills

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