Just the Facts

 

  • The typical ASP.NET page contains a single <form> tag with the runat attribute set. Multiple server-side forms are not allowed to be visible at the same time.

  • In ASP.NET 2.0, controls that implement the IButtonControl interface are allowed to post to a different target page. The runtime takes care of posting the view state and arranges the post.

  • Exceptions remain the official .NET way to handle anomalies, but exceptions should be kept to handling exceptional events in the life of the application namely, those that are raised when something happens that violates an assumption.

  • When an unrecoverable error occurs in an ASP.NET page, the user receives a different message, based on its local or remote location. Remote users will get a generic error message; local users get details and the call stack.

  • As a developer, you can customize the page being displayed both programmatically and declaratively. In the latter case, you can automatically bind a custom page to the HTTP status code.

  • ASP.NET 2.0 pages can be attached to an additional context property the profile object. The profile is an instance of a class dynamically built around the data model specified in the configuration file.

  • When the profile is active, pages persist user preferences and parametric data to and from a permanent medium in a totally automated way. Developers have no need to know where and how this happens.

  • A common profile is available for anonymous users that provides the possibility of migrating data to the real profile object when the user logs in.

  • Pages that take advantage of the user profile object should consider adding some UI blocks to let end users modify parameters on the fly.

  • Page personalization is tightly coupled with membership.

 


Programming Microsoft ASP. Net 2.0 Core Reference
Programming Microsoft ASP.NET 2.0 Core Reference
ISBN: 0735621764
EAN: 2147483647
Year: 2004
Pages: 112
Authors: Dino Esposito

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