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

MVC Patterns (Active and Passive Model) and its implementation using ASP.NET Web forms

Rate me:
Please Sign up or sign in to vote.
4.88/5 (24 votes)
29 Oct 2013CPOL4 min read 63.4K   495   38  
MVC Pattern and it's types and implementation using Passive Model.
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DashBoard.aspx.cs" Inherits="MVCPassiveModelForWinForms.DashBoard" %>
<%@ Register Src="~/Views/ComputerView.ascx" TagPrefix="com" TagName="Computer" %>
<%@ Register Src="~/Views/MobileView.ascx" TagPrefix="mob" TagName="Mobile" %>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
        body {
            font-family:Verdana;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <div style="height:400px; width:825px; margin:auto auto;">
            <div style="border:1px solid; width:400px; height:400px; float:left; margin-right:20px;">
                <com:Computer runat="server" id="computer" />
            </div>
            <div style="border:1px solid; width:400px; height:400px; float:left;">
                <mob:Mobile runat="server" id="mobile" />
            </div>
        </div>
    </form>
</body>
</html>

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 Code Project Open License (CPOL)


Written By
Founder http://softwarelandmarks.com/
Bangladesh Bangladesh
I am in Software Development for more than 12 years. I am expert on Microsoft Platform for Web Forms, MVC, MVC Core, Web API, Desktop App, PHP etc. I am also expert on jQuery, AngularJS, Bootstrap, Font Awesome, Telerik UI, Kendo UI etc. I know BackboneJS, KnockoutJS also. I am an article writer. I have many articles in CodeProject.

Email: khademulbasher@gmail.com

Comments and Discussions