ASP.NET MVC to realize the application of lay UI rich text editor

First look at the visual layer In the view layer, we use the view assistant -- HtmlHelper, instead of the traditional form label elements in our web pages, where m represents the entity model. Through the view assistant, we can generate textarea tags with the same id and name attributes for us. Remarks: In ASP.NET MVC, the elements that can ...

Posted on Tue, 12 Nov 2019 12:17:00 -0500 by kittrellbj

Record error log in Asp.Net MVC and save to local txt file

In order to facilitate the query of system errors, it is necessary to get an error log for maintenance and operation. 1. In app start of Asp.Net MVC project, add a file ErrorLog for handling exception class to let it inherit HandleErrorAttribute class and override OnException method public class ErrorLog: HandleErrorAttribute { ...

Posted on Fri, 08 Nov 2019 16:04:23 -0500 by raven2009

PowerShell saves clipboard pictures and constructs a MarkDown statement

target Recently learning to write documents with MarkDown, I hate passing pictures.Prepare to build your own wheel with PowerShell, but also search ahead and find a lot of Big Brother's documents. The whole process to do is Copy Clipboard Picture with Mouse Enter program processing logic Processing clipboard pictures, saving cost local file ...

Posted on Thu, 07 Nov 2019 16:45:36 -0500 by titel

Realization of Web paging function

Whether it is website or APP paging function is essential. Why paging? 1. The loading speed is fast, which will not occupy too many resources of the server and reduce the pressure on the server. 2. Reduce database pressure. 3. Improve the user experience.   There are two common paging methods. 1. True paging: each page will read a small a ...

Posted on Mon, 04 Nov 2019 05:41:20 -0500 by trufla

The strategic mode of C ා design mode

  Background: In our actual project development, we use a more common design pattern, and directly paste a demo for your reference. If there is something wrong, please give more tips and exchangeDefinition: The policy pattern encapsulates each algorithm into a separate class with a common interface for a group of algorithms,So that they ...

Posted on Sun, 03 Nov 2019 09:10:39 -0500 by iii

Single case mode of c-design mode

Single case mode of c-design mode Scene description Singleton mode is a common name for us. The practical effect of singleton mode in a program is to ensure that there is only one instance in a program, and to provide a global access point, so as to save system resources Single instance mode is common in both actual development and software ...

Posted on Sat, 02 Nov 2019 01:56:40 -0400 by Loathor__Healer

C ා NETCORE ා web project ා EXCEL data export

The project needs to refer to NPOI's Nuget package:   There are three ways to trigger downloading Excel from A-front end: 1-JS-Url jump request - the background needs to return the file stream data: window.Location.href = "/ajax/toolhelper.js?action=reBuyExport&beginTime=" + beginTime + "&endTime=" + endTime; 2 - use form+ifram ...

Posted on Tue, 29 Oct 2019 13:08:29 -0400 by godfrank

Learning Line Segment Tree

Construction of Line Tree The overall gap is not big, but only when you really understand the segment tree can you write right. struct SegmentTree { int l,r;  //l represents the left point of t[p] int dat; //Wait }t[size*4];   void build(int p,int l,int r) { t[p].l=l,t[p].r=r; if(l==r) { t[p].dat=a[l] ;ret ...

Posted on Fri, 11 Oct 2019 13:14:14 -0400 by fastidious

Topological Sorting-CodeForces-645D

Title Link Topic meaning There's a robot game. As long as a can beat b and b can beat c, a can certainly beat C. Then give a bunch of results. If you can't get the only ranking of all the robots, output - 1. If you can, you can get at least the results of the previous matches and output the least number of matches. Title Analysis Using to ...

Posted on Fri, 11 Oct 2019 12:05:05 -0400 by misseether

Basic Data Types and Use of [Web Front End] 022 js

1. Javascript basic data types 1.1 classification type Interpretation boolean Boolean type, divided into true and false number Integer type, floating point type string Character type object object type function Function type undefined "Undefined" type 1.2 example Supplement: typeof() - Functions that can obtain vari ...

Posted on Fri, 11 Oct 2019 11:54:47 -0400 by bufhal