Using AutoFac in WebApi

Using AutoFac in WebApi (I) The previous article said how to use AutoFac, but there is still a problem: when an interface has multiple implementation classes, how to distinguish the implementation classes? There are many solutions, such as named < T > and so on, but they all need to register separately. If it is less, it will be a bit tro ...

Posted on Wed, 13 May 2020 10:18:58 -0400 by FrozNic

The magic of indexers: reading configuration files

GPS platform, website construction, software development, system operation and maintenance, find Senda network technology!http://cnsendnet.taobao.comFrom Senda Technology Official Bloghttp://www.cnsendblog.com/index.php/?p=602 Indexer: Officially, it is a member of a class that allows instances of a class or structure to be sorted in the same ...

Posted on Wed, 06 May 2020 00:05:45 -0400 by Mastermind

Summary of ASP.NET MVC's multiple ways of passing Model to view

There are several ways to transfer data to a view, as follows: ViewData ViewBag PartialView TempData ViewModel Tuple Scenario: On the view page, select the course trigger event from the drop-down box, and the teacher's schedule and student's schedule will be displayed respectively, as shown in the figure below:      Related models: 1 p ...

Posted on Sun, 03 May 2020 05:26:32 -0400 by Jas

Asp.net MVC simple implementation generate Excel and download

Due to the requirements on the project, you need to export the Excel file with the specified conditions. After a rummage, it finally came true. Now post the code and share it (directly share the code of some auxiliary classes in our project)   Our project uses Asp.Net MVC4.0 mode. Each ActionResult must return a View or Json, etc. (the paramete ...

Posted on Fri, 01 May 2020 07:27:28 -0400 by bloodl

HTML+LayUI+WebApi simple personal beginner 's demo course -- "the road of.Net stepping on the pit"

Extras: Take on the last one. The first part is mainly about the use of LayUI. I'm too excited to write code by hand. In fact, this project uses Unity, the IOC framework. After all, people should have dreams. If you are interested in it, you can learn about it yourself. Later, I will talk about my personal opinions on IOC and DI and the use of ...

Posted on Tue, 28 Apr 2020 07:25:11 -0400 by Dedix

The implementation of retrieving blog Garden articles through the interface

Registered domain name (Nineksy.cn) and applied for virtual machine in alicloud. Today, the domain name filing passed, and I am going to make several pages for the website. Because the blog park is easy to use, I will not prepare my own content management, and I am going to directly call the content of the blog park. Because alicloud virtual ma ...

Posted on Mon, 27 Apr 2020 05:20:45 -0400 by sports

Using WeChat official account to display and pay for goods

In the early essay< Dynamic display and maintenance of commodity data with wechat applet and background data management "Introduced" using small programs to achieve the display of goods, in fact, based on the corresponding interface, we use H5 pages to develop public display and payment of goods based on official account, and it is ...

Posted on Wed, 22 Apr 2020 02:04:02 -0400 by Elusid

Express Single Identification API Express Bird Interface

Preface Single Number Recognition API interface, mainly to provide user experience, reduce customer operation steps, and manual error detection, customers provide courier number, which can return one or more possible courier companies in real time, there are multiple results of courier companies, large data platforms can sort intelligently acc ...

Posted on Fri, 17 Apr 2020 02:17:38 -0400 by Scottiebabes

EMS express bill number query express bird interface

EMS Express query Call the Express query API standard interface provided by express bird, and quickly connect the logistics trace query of more than 100 express companies. This article realizes the express bill number query of < EMS >. First of all, we are ready to use the resources, Here we recommend you to go to iqiyi to view the video ...

Posted on Mon, 13 Apr 2020 11:04:05 -0400 by shirvo

asp.net MVC universal paging component is convenient and universal

Display logic of the paging control:   1. The current page is highlighted in reverse color, and the link is not clickable 2 the first page is not clickable 3 the last page cannot be clicked 4. The left and right display page numbers of the current page can be adjusted. If they are the same, they will be centered 5 when the left page number i ...

Posted on Sun, 05 Apr 2020 13:37:07 -0400 by Revos