Implementing Observer in ASP.NET
page 2 of 5
by Brian Mains
Feedback
Average Rating: 
Views (Total / Last 10 Days): 31260/ 42

Custom Pages

To make use of the observer, it is best to implement a custom page class. The custom page class is a class that inherits from System.Web.UI.Page and works like regular inheritance does. The reason to implement a custom page class is because of the specialized nature of how this will work. It is possible to not have to use a custom page class; however, for unit testing purposes it makes it helpful to do so.

One of the approaches to implementing the observer pattern is to have the page act as the subject. It is the one that controls certain interactions and notifies its children that an update needs made. The children are most likely user controls because the means to update will require the use of an interface. Each user control would implement from a custom user control base class, similar to how the custom page class works.


View Entire Article

User Comments

Title: Puedes pasar el codigo   
Name: anonimo
Date: 2011-04-27 9:41:30 PM
Comment:
proyect? please
Title: incomplete code   
Name: lokeshsp
Date: 2008-08-07 8:18:04 AM
Comment:
Incomplete code

Product Spotlight
Product Spotlight 





Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2024 ASPAlliance.com  |  Page Processed at 2024-07-25 11:58:48 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search