Click here to Skip to main content
15,896,557 members
Articles / Web Development / HTML

ASP.NET MVC - Part 1

Rate me:
Please Sign up or sign in to vote.
4.40/5 (34 votes)
7 Apr 2008CDDL13 min read 228.7K   9K   121  
A look at the ASP.NET MVC application in ASP.NET Extensions 3.5.
<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" AutoEventWireup="true" CodeBehind="Index.aspx.cs" Inherits="Mvc.Views.Home.Index" %>

<asp:Content ID="indexContent" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">
    <h2>
        Introduction to ASP.NET MVC Application!</h2>
    <p>
        The Model View Controller (MVC) architectural pattern separates an application into
        three main components: the model, the view, and the controller. The ASP.NET MVC
        framework provides an alternative to the ASP.NET Web-forms pattern for creating
        MVC-based Web applications. The ASP.NET MVC framework is a lightweight, highly testable
        presentation framework that (as with Web-forms-based applications) is integrated
        with existing ASP.NET features, such as master pages and membership-based authentication.
        The MVC framework is defined in the System.Web.Mvc namespace and is a fundamental,
        supported part of the System.Web namespace.
    </p>
    <p>
        The MVC pattern helps you to create applications that separate the different aspects
        of the application (input logic, business logic, and UI logic), while providing
        a loose coupling between these elements. The pattern specifies where each kind of
        logic should exist in the application. The UI logic belongs in the view. Input logic
        belongs in the controller. Business logic belongs in the model. This separation
        helps you manage complexity when you build an application, because it enables you
        to focus on one aspect of the implementation at a time. For example, you can focus
        on the view without depending on the business logic. You can read more about ASP.NET
        MVC Application <a href="http://quickstarts.asp.net/3-5-extensions/mvc/MVCOverview.aspx">
        here</a>.
    </p>
</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 Common Development and Distribution License (CDDL)



Comments and Discussions