The example Nitin have given is an example of Observer Pattern.where
subject notifies to all the observer if it(subject) gets changed. In
MVC pattern there are main three entity Model View and as you know
Controller. In this architecture following kind of transactions
occurs...
- View Requests to Controller for data.
- Controller fetch the data from the model and updates the view.
- View reuest controller to update the data.
- Controller updates the data on the modle.
These
kind of trasactions keeps on occuring among the View, Controller and
Model. ASP.Net allow us to use this pattern the form of Codebehind.
where your aspx page is view, you codebehind base class is controller
and your database or any persistant storage is modle...
Hope you got the answer...
No comments:
Post a Comment