Click here to Skip to main content
15,878,945 members
Articles / Web Development / ASP.NET

Presentation Model and Dependency Injection

Rate me:
Please Sign up or sign in to vote.
4.81/5 (10 votes)
26 Apr 2009Ms-PL5 min read 46.5K   434   65  
ASP.NET MVVM provides a framework to implement the Presentation Model pattern, a.k.a. the Model-View-ViewModel pattern in ASP.NET projects. Developers can take advantages of Dependency Injection and Event Broker to write concise, elegant and business focused code.
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" Inherits="Demo.WebApp.Customer1" Title="Option 1" Codebehind="Customer1.aspx.cs" %>

<%@ Register src="CustomerList.ascx" tagname="CustomerList" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"></asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <uc1:CustomerList ID="CustomerList1" runat="server" UsePopup="true" />
</asp:Content>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Microsoft Public License (Ms-PL)


Written By
Architect
Canada Canada
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions