ASP.Net MVC OA project notes

1.1.1 Abstract Factory encapsulates the creation of data operation class instance, and then DBSession calls abstract factory to modify DBSession CZBK.ItcastOA.DALFactory data session layer calls data layer can not be directly new, you need to encapsulate decoupling   1.2.1 CZBK.ItcastOA.DALFactory add abstract factory class AbstractFactory 1.2 ...

Posted by Marchingknight11 on Mon, 16 Dec 2019 15:54:32 +0100

Two ways to transfer values from MVC drop-down box

http://www.cnsendblog.com/index.php/?p=137GPS platform, website construction, software development, system operation and maintenance, find Senda network technology!http://cnsendnet.taobao.com In the past, when WebForm was used, the drop-down box only needed to bind the code directly in the background. Now let's take a look at the DropDownList ...

Posted by kulikedat on Sun, 08 Dec 2019 20:53:15 +0100

Replace Word text with document, picture and table

When editing a document, you can quickly change some characters or paragraphs that need to be modified by finding and replacing them. In this article, you will learn how to replace a specified text string in a document with a Word document, picture, or table. The key points of the example are as follows: Replace text in Word with a document R ...

Posted by Chris-the dude on Fri, 06 Dec 2019 10:48:54 +0100

Redis cache in AOP mode using AspectCore

This time, the goal is to implement caching by labeling Attribute s, streamline code, and reduce code intrusion into business code. Cached content is the summary content of Service queries, without other high-level functions, to improve the response speed of multiple queries in a short time, and to properly reduce the pressure on the database. ...

Posted by esukf on Thu, 14 Nov 2019 06:40:27 +0100

Enable cross domain request (CORS) in ASP.NET Core

This article describes how to enable CORS in ASP.NET Core applications. Browser security prevents web pages from sending requests to other domains rather than serving them. This restriction is known as the same origin policy. The same source policy prevents malicious sites from reading sensitive data from another site. Sometimes, you may want ...

Posted by jmgrhm on Sun, 03 Nov 2019 18:48:21 +0100

[Reprint]. NET ASP.NET web Form (.aspx) uses ajax to achieve local refresh

C# All runat="server" controls will cause the entire interface to refresh, if you want to achieve partial refresh, you can use ajax. The controls that need to be added are ScriptManager and Update Panel, which can only refresh the contents of Update Panel.AJAX has been encapsulated in a control in C# and can be easily implemented in a ...

Posted by urneegrux on Tue, 15 Oct 2019 08:48:04 +0200

net core uses Rotativa to create PDF documents

Download Rotaiva Tool = NuGet package manager = NuGet package management solution Search for Rotativa.AspNetCore on the open page as follows:     Check the record in red box, all the projects in your solution will appear on the left, click on the installation to add the project, and the version number will appear after the installation is ...

Posted by lordtrini on Sat, 05 Oct 2019 19:15:07 +0200

net Implements a Simple General Query Data and Exports Excel Web Page

Background:Provide a simple web page temporarily for others to browse some data in the database (Oracel, MSSQL) and export Excel.Support adding or modifying sql at any time in the configuration file.   Realization:Store sql statements and other information in an xml file. The front-end page provides a drop-down box to select different types o ...

Posted by hbradshaw on Fri, 04 Oct 2019 12:13:02 +0200

ASP.NET MVC Implementation of Dependency Injection

There is automatic injection function in java spring, which makes the code more concise and flexible. So I want to transplant this function into c #, and then I will analyze the implementation process step by step. 1. Scenario analysis using automatic injection In asp.net mvc, no matter what code logic layers, the final performance layer is t ...

Posted by Wynder on Tue, 10 Sep 2019 13:58:47 +0200

RBAC permission framework_MVC permission framework

RBAC Role-Based Access Control (RBAC) is a role-based access control framework. It is very convenient to manage privileges through user-role-privilege association. What is it? RBAC Please do it yourself. Baidu. Thank you for your support. If there are any mistakes in the article, please contact me or email me linjie.rd@gmail.com. A small gift ...

Posted by nilesh on Tue, 13 Aug 2019 13:48:42 +0200