Tag:MVC

  • Exceptionfilter of asp.net core MVC global filter (1)

    Time:2021-5-12

    This class will explain the use of built-in global filter in asp.net core MVC, which will be divided into the following chapters Exceptionfilter of asp.net core MVC filter (1) Actionfilter of asp.net core MVC filter (2) Resultfilter of asp.net core MVC filter (3) Resourcefilter of asp.net core MVC filter (4) Authorization filter of asp.net core […]

  • Actionfilter of asp.net core MVC filter (2)

    Time:2021-5-9

    This class will explain the use of built-in filter in asp.net core MVC, which is divided into the following chapters   Exceptionfilter of asp.net core MVC filter (1) Actionfilter of asp.net core MVC filter (2) Resultfilter of asp.net core MVC filter (3) Resourcefilter of asp.net core MVC filter (4) Authorization filter of asp.net core MVC filter […]

  • Method of dynamically compiling asp.net MVC to generate controller

    Time:2021-5-5

    When doing the website background management system, sometimes we need to dynamically generate some channels according to the user’s input configuration. These channels need to use the independent controller. At this time, we need to use the runtime dynamic compilation. The code is as follows: using System.Web.Mvc; using System.CodeDom.Compiler; using System.Text; using Microsoft.CSharp; namespace DynamicCompiler.Controllers […]

  • Methods of using rest in asp.net MVC

    Time:2021-4-27

    preface Recently, I did the next MVC project. I need to use the rest interface to communicate with applications written in Java, including data receiving and sending. Then I will explain its usage from a practical point of view 1、 Create rest Service First, create an ASP. Net web application (I use Visual Studio 2013, […]

  • ASP.NET The method of using bootstrap in MVC

    Time:2021-4-26

    As a web developer, it is very difficult to use HTML and CSS to build friendly pages from scratch without any front-end framework. Especially for the developers of windows form, it is even more difficult. It is for this reason that bootstrap was born. Twitter bootstrap provides developers with rich CSS styles, components, plug-ins, and […]

  • ASP.NET How to use core MVC filter

    Time:2021-4-22

    The function of the filter is to do some processing before or after the execution of the action method. Use filters to avoid duplicate code for action methods. For example, you can use exception filters to merge exception handling code. How does the filter work? The filter runs in the MVC action call pipeline, sometimes […]

  • asp.net Forms authentication process in MVC

    Time:2021-4-13

    Verification process 1、 User login 1. Validation form: ModelState.IsValid2. Verify user name and password: verify by querying the database3. If the user name and password are correct, save the cookie on the client to save the user login status: setauthcookie1): find out the user name and some necessary information from the database, and save the […]

  • IIS deployment asp.net MVC website design method

    Time:2021-4-9

    IIS is easy to configure ASP.NET MVC website, for your reference, the specific content is as follows Compiler: vs 2013Local IIS: IIS 7Operating system: Win 7MVC version: ASP.NET MVC4SQL Server Version: 2008 R2 Open vs 2013, create a new MVC project (Internet version), and then run the test locally. It should work. Then configure IIS […]

  • asp.net MVC codefirst schema database migration steps

    Time:2021-4-2

    After building the basic class with code first mode, the project starts to build and run successfully, and the database table structure has been automatically generated. However, I have new classes to add and fields to modify. What should I do? Delete the library and run? ha-ha Using database migration, the original structure will not […]

  • ASP.NET MVC API interface verification example code

    Time:2020-12-2

    There is a message message interface in the project to receive messages and display messages from other systems. Referring to some API verification methods on the Internet, it is found that the verification method provided by the general permission management system is the most perfect. The following will realize the complete idea sharing 1. Webapiconfig […]

  • asp.net An example of MVC webapi interface encryption method

    Time:2020-11-30

    In many projects, because webapi is open to the outside world, at this time, we have to consider the security of interface exchange data. There are also many security mechanisms. For example, when Andriod and webapi exchange data, the two-way certificate method can be used, but the development cost is relatively high, Today we are […]