zoukankan      html  css  js  c++  java
  • 【引】Difference between Asp.Net WebForm and Asp.Net MVC

    Asp.net framework is a part of .net platform for building, deploying and running web applications. Now, we can develop a web application by using Asp.Net Web Form and Asp.Net MVC. In this article, I am going to expose the main difference between Asp.Net Web Form and Asp.Net MVC.

     
    Asp.Net Web Forms Asp.Net MVC
    Asp.Net Web Form follow a traditional event driven development model. Asp.Net MVC is a lightweight and follow MVC (Model, View, Controller) pattern based development model.
    Asp.Net Web Form has server controls. Asp.Net MVC has html helpers.
    Asp.Net Web Form has state management (like as view state, session) techniques. Asp.Net MVC has no automatic state management techniques.
    Asp.Net Web Form has file-based URLs means file name exist in the URLs must have its physically existence. Asp.Net MVC has route-based URLs means URLs are divided into controllers and actions and moreover it is based on controller not on physical file.
    Asp.Net Web Form follows Web Forms Syntax Asp.Net MVC follow customizable syntax (Razor as default)
    In Asp.Net Web Form, Web Forms(ASPX) i.e. views are tightly coupled to Code behind(ASPX.CS) i.e. logic. In Asp.Net MVC, Views and logic are kept separately.
    Asp.Net Web Form has Master Pages for consistent look and feels. Asp.Net MVC has Layouts for consistent look and feels.
    Asp.Net Web Form has User Controls for code re-usability. Asp.Net MVC has Partial Views for code re-usability.
    Asp.Net Web Form has built-in data controls and best for rapid development with powerful data access. Asp.Net MVC is lightweight, provide full control over markup and support many features that allow fast & agile development. Hence it is best for developing interactive web application with latest web standards.         
    Asp.Net Web Form is not Open Source. Asp.Net Web MVC is an Open Source.
       
  • 相关阅读:
    云服务器Ubuntu更改默认python版本
    例题4-1-3-古老的密码、刽子手的游戏,救济金发放
    Github pages和Hexo搭建自己的博客
    Python字典基本操作介绍
    python win32api win32gui win32con PyUserInput实现自动化脚本
    spring--分类索引
    目录-java并发基础知识
    【转】集群单点故障的应对策略
    CnBlogs自定义博客样式
    读书笔记——《redis入门指南(第2版)》第七章 持久化
  • 原文地址:https://www.cnblogs.com/taoqianbao/p/3599934.html
Copyright © 2011-2022 走看看