Category:.NET

  • Design of multiple login users in ABP

    Time:2021-6-14

    scene In the “school management system”, students, parents, teachers, educational administration may log in and do some of their own operations. These users need different attributes. For example, students have student numbers, but teachers don’t. Application users When coding, you often need to get the information of the current login user, which is the application […]

  • A memory leak analysis of a. Net his back end service

    Time:2021-6-14

    1: Background 1. Tell a story The day before yesterday, that his elder brother came to see me again. Last time, because ofCPU burstI’ve solved the problem. It seems that I trust you very much. This time another program encountered a memory leak. I hope I can help diagnose it. In fact, this elder brother’s […]

  • Unity shader to achieve more complete lighting effect

    Time:2021-6-14

    This example for you to share the unity shader to achieve lighting effect of the specific code, for your reference, the specific content is as follows design sketch: The shader is attached to the ball. The light needs to turn on shadows in the property panel. // Upgrade NOTE: replaced ‘mul(UNITY_MATRIX_MVP,*)’ with ‘UnityObjectToClipPos(*)’ Shader “Unlit/lightFull” […]

  • Asp.net MVC 4 using pagedlist.mvc paging implementation code

    Time:2021-6-14

    There are many ways to paginate in asp.net MVC. Pagedlist and pagedlist.mvc are provided in nuget. When you install and reference pagedlist.mvc, you will also install and reference pagedlist. Copy codeThe code is as follows:  @Html.PagedListPager((PagedList.IPagedList<SampleInfo>)ViewBag.Models, page => Url.Action(“Index”, new { page, keyword = Request[“keyword”], datemin = Request[“datemin”], datemax = Request[“datemax”] })) Search trigger event: […]

  • How does c-chen run

    Time:2021-6-13

    Before explaining the process, you need to understand some basic concepts. Basic concept explanation: CPU :The central processing unit, the brain of a computer, is made up of millions to hundreds of millions of transistors. It is the place where interpretation and operation are finally converted into machine language (binary code). Machine language is processed […]

  • How to use log4net under. Net

    Time:2021-6-13

    This example for you to share the. Net log4net use, for your reference, the specific content is as follows Take the console application as an example First, add a reference: After installation, you can see that there are more references to log4net in the project: Add application configuration file app.config and configure log4net <?xml version=”1.0″ […]

  • Asp.net core wechat payment (3) [query order apiv3]

    Time:2021-6-12

    Official references   Order inquiry Theory and Practice The government provides two ways to query orders, one is based on the order number generated by the merchants themselves, and the other is based on the order number generated by wechat. And I use the first way. Call wechat paymentOrder inquiry, need to generate signature, according to […]

  • A memory leak analysis of a. Net foreign trade web station

    Time:2021-6-12

    1: Background 1. Tell a story Last Thursday, a friend of mine, Jia Wx, inquired that there was a certain degree of memory leakage in his program, and it could not be recycled by GC. Finally, the machine ran out of memory, which was very embarrassing. After communication, this friend’s ability is still very good. […]

  • C # implementation of online ordering system

    Time:2021-6-12

    This is the C # big homework. I’ve been working hard for a long time, so I’ll keep it. It’s not now. It’s the final assignment before. I just want to sort it out now Implementation function: 1. Business login; Customer login and registration.2. The business interface can add, delete, modify and check the menu; […]

  • ASP. Net mvc4’s idea of updating form content through ID

    Time:2021-6-12

    User requirements: once a form is created, most of its fields can no longer be edited. Only some of the fields can be edited. Non editing is realized by setting the disabled attribute to the input box. At this time, an error will be reported to the content of the submit form in the database, […]

  • The interviewer asked: what is the solution to prevent duplicate requests?

    Time:2021-6-11

    background In normal development, we often face the problem of preventing duplicate requests. When the server response to the request involves data modification or state change, it may cause great harm. The consequences of repeated requests are especially serious in the transaction system, after-sales rights protection and payment system. But most of the time, they […]

  • Storage principle of C # data type in memory

    Time:2021-6-11

    In C #, the type of variable belongs to reference type, value type, and the conversion between them is difficult to understand, which is related to the storage structure of type in memory. This paper combs the process through the relationship between memory, stack, heap, value type, reference type, and the boxing operation generated by […]