ASP. net mvc development: essential knowledge for Web project development, mvc Project Development

Source: Internet
Author: User

ASP. net mvc development: essential knowledge for Web project development, mvc Project Development
Recently, I worked overtime to complete a Web project and used Asp.net MVC for development. A long time ago, I was a newbie in Asp.net development, Aspx, Razor engine, and MVC development.

For beginners, how many knowledge points should be mastered in advance for Asp.net MVC development to achieve smooth development?
The following is a summary of some knowledge points after the end of this development. There will be no major problem in the development of large-scale Asp.net MVC projects with the following knowledge points. General Knowledge Point Outline
  • Code Specification
  • Previous View
  • Backend
1. Code Specification Good standards can make the team more efficient!
  • C # Use StyleCop to check code
  • SQL standard tool integer
  • JS specification ESLint, JSHint, JSLint tools
  • HTML Tag Specification
  • Resource Name specification _W0001: Warning ,_E0001: Error ,_C0001: OK
2. Front-end View Basic knowledge.
  • Razor
  • Htmlhelper
  • Html + css + div
    In the future, we need to strengthen the design path.
  • Image
    All kinds of pictures used by the project need to be designed and cut by the artist.
  • JS script
    • Typescript
      The Microsoft open-source tool is finally compiled into a Javascript file for execution.
    • Javascript
      • Jquery
      • Microsoft. jQuery. Unobtrusive. Validation
        Microsoft Front-end control detection script, which can be expanded by itself.
  • ViewModel
    • Display
      The field indicates the name in the View. It is usually bound to the content of the Resource file.
    • DataType
      The field corresponds to the control type in the View.
    • Validation
      • Required
        Incoming force must be detected
      • StringLength
        Input force value length Detection
      • Regex
        Input force value Regular Expression Detection
      • Range
        Input range detection
      • Custom Validaiton
        To Customize various detection rules, you must inherit ValidationAttribute and IClientValidatable.
  • Paging
    The data capacity must be measured in one-time Select or paging Select.
  • Search
    It is complicated to search for data, such as simple fuzzy match or others.
3. backend Process the input in the previous section.
  • Controller
    • FilterAttribute
      Restrict the Controller or Action.
      • AuthorizeAttribute
        Authenticates the Controller or Action.
        • Identity
        • Form Authentication
      • ValidateAntiForgeryTokenAttribute
        Prevents cross-site attacks.
      • ActionNameSelectorAttribute
        Multiple actions in a View.
      • LogAttribute
        Write the operation Log of the Controller or Action.
      • SessionTimeoutAttribute
        Session Timeout judgment.
      • HandleErrorAttribute
        Handle Controller or Action exceptions.
    • Action
      • ViewResult
      • ActionResult
      • JsonResult
      • Session + TempData + ViewBag + ViewData
        Multiple Data storage methods are provided to facilitate data sharing between views, actions, and actions.
      • PRG
        Redirect to Get Action at the end of processing the POST request Action. Prevent the user from submitting a POST request again after F5 update, resulting in data update or insertion.
      • Include
  • Data Service
    • Service
      • Transaction Processing
        • Stored Procedure
    • Repository
      • ORM
        • Entity Framework

          DB First or Code First development mode. EF provides the ability to convert data from a data set to a data set.

        • Dapper

          For the Connection extension, only the conversion from the dataset to the Model is provided, and the performance is good.

    • Entity
  • Exception
    • IIS exception
      • Application_Error
      • ErrorController
    • Action exception
      • Controller. OnException
        • HttpAntiForgeryException handling
          Generally, the logon page is displayed when a Token exception occurs.
      • Web. Config customErrors Configuration
        Set the error page to jump to when an Action exception occurs.
  • Log
    • Service Log
    • Repository Log
    • SQL Execution Log
    • Action Log

      You can use Filter to set global settings.

Difficulties
  • JS script
  • Custom Validation
  • Exception Handling
  • Data Processing
Web development is basically based on these knowledge points, hoping to help new users!

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.