Basic Learning Notes for ASP.NET Core MVC

Recently, due to the epidemic of "Wuhan pneumonia" at home, I have not been idle either. Recently, I have learned the basic knowledge of some web page development of asp.net core mvc, and I will go to the tutorial without saying more!   1. New Project   1) Create a new project - > Find " ASP.NET Core Web Application-type items ...

Posted on Tue, 18 Feb 2020 11:34:06 -0500 by jhuaraya

Using FileBox control to upload files in EasyUI project

My earlier essay< The journey of the formation of the Web development framework based on MVC4+EasyUI -- the use of the attachment upload component uploadify >In the introduction of the Web framework, the file upload operation based on Uploadify is introduced. The free version uses Jquery+Flash to realize the file upload processing. The HT ...

Posted on Tue, 07 Jan 2020 22:42:54 -0500 by turtlefox

Asp.Net MVC remembers the user's login information. No password is required for next login

Sometimes you need to remember the user's login information when making a website. The next time you log in to the website, you don't need to enter the user name and password repeatedly. The principle is that the cookie of the browser remembers the status! So how is it realized? The blogger will post some codes below. If you want the full versi ...

Posted on Sat, 04 Jan 2020 17:19:41 -0500 by davidska

WebApi interface parameter assignment

Currently, the interface uses [frombody] dictionary < string, string > req to receive. Sometimes, it is necessary to extract multiple fields from the req dictionary and assign them to the model. A few are good, and dozens of assignments are bad. So we designed to use generics and reflection to help the assignment. The design is not ve ...

Posted on Sat, 04 Jan 2020 06:34:10 -0500 by GBahle

On the Authentication filtering of MVC (4)

The front: In general, when we do access rights management, we will save the user's basic information after the correct login in the Session. In the future, every time the user requests the page or interface data, they will get The basic information of the user stored in the Session, to see whether he has logged in and whether he can access the ...

Posted on Wed, 01 Jan 2020 18:21:11 -0500 by mortimerdude

Two ways to return json data in MVC

In MVC, if the data is directly returned to the front-end page, we usually use return view(); So I don't want to use razor syntax directly. After all, razor is too hard to remember. It's not as comfortable as writing ajax docking So we can do that 1. Define ActionResult and return json. The tag attribute can be HttpPost or HttpGet according to ...

Posted on Wed, 25 Dec 2019 13:33:08 -0500 by gregmiller

JavaScript script calls Web Service method in ASP. Net 4.0

Environment: VS2019. net 4.0 framework Failed to use ScriptManager to call Web service in JavaScript according to the textbook. Now the process and solution are recorded as follows: 1. Define Web Service using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Services; namespace AjaxTest ...

Posted on Tue, 17 Dec 2019 12:14:25 -0500 by NoPHPPhD

A simple Token verification of Asp.Net WebApi

1. Preface: WebAPI mainly opens data to mobile APP, Pad, other systems or software applications that need to know data. Authentication of Web users and authentication of page operation authority are the basic functions of B/S system. Last time I wrote< Creation of Asp.Net MVC WebAPI and details of Jquery ajax in the foreground and HttpClien ...

Posted on Tue, 17 Dec 2019 04:48:26 -0500 by BSkopnik

The implementation of upload and download of attachment under. net core

In last article Some operation and use of Excel under. net core This paper mainly introduces the operation of excel under. net core. This paper mainly introduces the upload and download of the file. File upload and download is also a common function in the system, not verbose, directly on the code to see the specific implementation. File upload ...

Posted on Sun, 15 Dec 2019 11:39:08 -0500 by Fastback_68

Spire.Cloud.Word Add Word Watermark (Text Watermark, Picture Watermark)

SummarySpire.Cloud.Word provides a watermarksApi interface for adding watermarks, including SetTextWatermark and SetImageWatermark, which are described in more detail in this article. About Spire.CloudSpire.Cloud is a cloud-based Office document processing software that supports online creation, editing, saving and printing of Office (Word / E ...

Posted on Fri, 06 Dec 2019 07:53:59 -0500 by elenev