ASP.Net MVC - What replaces events to support loose coupling?
Posted
by James
on Stack Overflow
See other posts from Stack Overflow
or by James
Published on 2010-04-01T16:09:19Z
Indexed on
2010/04/01
16:13 UTC
Read the original article
Hit count: 383
What feature(s) of ASP.Net MVC can replace the way events can be used in Webforms to support loosely coupled components.
For example, take a simple pager control:
- A page number is clicked
- Pager fires off a "PageChange" event with the new page number
- This subscribing page/control received the event and handles initiating a call to fetch and bind new data.
What tools are available in ASP.Net MVC to support
- Loose coupling
- Component re-usability
- Separation of logic for a single page/view (such a very complex "portal" type page).
© Stack Overflow or respective owner