Back to the original asp.net mvc series Article Index

Source: Internet
Author: User

[Download source code]

Back to the original asp.net mvc series Article Index

Author: webabcd

Introduction
Back to the original asp.net mvc series Article index: add, query, update and delete Demo, routing (System. web. routing), Controller/Action, View/ViewEngine, Action Filter, UpdateModel, ModelBinder, Ajax, Unit Test, 2.0 new features, 3.0 New Features

1. asp.net mvc (1)-Demo of adding, querying, updating, and deleting
Introduction
Use Northwind as the example database and asp.net mvc 1.0 for addition, query, update, and deletion operations

2. asp.net mvc (2)-Routing (System. Web. Routing)
Introduction
System. Web. Routing-This namespace provides a class for URL Routing, through which you can use a URL not mapped to a physical file

  • IRouteHandler-route handler interface, which must be implemented by custom route handlers
  • RequestContext-encapsulate information about the requested route and the current http Context
  • RouteData-information about the requested route
  • RouteCollection-Route Set
  • RouteValueDictionary-case-insensitive key/value dictionary table
  • Route-Route related information

3. asp.net mvc (3)-Controller/Action
Introduction
Controller and Action of asp.net mvc

  • The Controller class must end with the Class Name of the string "Controller". The character string before the Controller is the name of the Controller. The method name in the class is the name of the Action.
  • Action can return no value. If Action has a return value, its type must be ActionResult.

4. asp.net mvc (4)-View/ViewEngine
Introduction
View and ViewEngine in asp.net mvc

  • Both ViewData and TempData can transmit data to the View, where TempData is stored in the Session. After a request, the Session will be cleared.
  • HtmlHelper-A help class for displaying HTML elements in View
  • IViewEngine-custom view engine needs to implement this interface
  • VirtualPathProviderViewEngine-implements the abstract class of the IViewEngine interface, and implements the function of searching corresponding page files based on the specified path format (internal cache mechanism)
  • IView-only one method to implement is to render HTML results

5. asp.net mvc (5)-Action Filter, UpdateModel, ModelBinder, Ajax, Unit Test
Introduction
Asp.net mvc Action Filter, UpdateModel, ModelBinder, Ajax, Unit Test

  • Action Filter-Filter information at the Controller layer. How to Implement Custom Action Filter
  • UpdateModel-Automatically assigns values to attributes of an object based on parameters
  • ModelBinder-defines how to bind a Model. defamodelmodelbinder implements IModelBinder, which can automatically assign parameters to the corresponding attributes of the object based on the name.
  • Ajax-use ajax in asp.net mvc
  • Unit Test-use Unit Test in asp.net mvc

6. New Features of asp.net mvc (6)-asp.net mvc 2.0
Introduction
Asp.net mvc new asp.net mvc 2.0 features: for example, Data verification and client verification are implemented through DataAnnotations. The combination of MVC and Dynamic Data supports asynchronous Controller and Area, some new help methods

7. asp.net mvc (7)-asp.net mvc 3.0 Controller
Introduction
Asp.net mvc the new features of asp.net mvc 3.0 Controller:

  • Global Action Filter
  • You can use OutputCache on the Action marked as ChildActionOnly.
  • ViewBag
  • Added some Action results.

8. asp.net mvc (8)-asp.net mvc 3.0 Model
Introduction
Model of asp.net mvc 3.0, a new feature of asp.net mvc:

  • The combination of Data Annotations and jQuery enables dual verification between the server and the client.
  • Enable Remote Asynchronous verification on the client during double verification
  • Custom Data Annotations and jQuery to implement custom dual Verification

9. asp.net mvc (9)-View (Razor), a new feature of asp.net mvc 3.0)
Introduction
View (Razor), a new feature of asp.net mvc 3.0 in asp.net mvc ):

  • Razor syntax
  • Razor and Model
  • Razor and Layout

10. asp.net mvc (10)-asp.net mvc 4.0 Web API
Introduction
New Features of asp.net mvc 4.0 in asp.net mvc Web API:

  • Develop a CRUD Demo. The server uses Web APIs to support the jsonp protocol. The client uses jQuery

11. asp.net mvc (11)-asp.net mvc 4.0 self-host Web API, which provides Web APIs in WebForm and uploads files through Web APIs ,. more convenient asynchronous operations brought about by net 4.5
Introduction
New Features of asp.net mvc 4.0 in asp.net mvc Web API:

  • Self-hosted web APIs
  • Host to iis and provide web api service through WebForm
  • Upload files through Web APIs
  • . Net 4.5 provides more convenient asynchronous operations

12. asp.net mvc (12)-asp.net mvc 4.0 mobile features
Introduction
Asp.net mvc-New Features of asp.net mvc 4.0-mobile features

  • Provide different views for different clients
  • Manually override UserAgent to force the corresponding View

OK
[Download source code]

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.