As we all know, when developing an asp.net application, you can use the web. config file to configure the ASP. NET
Display information. The following is a typical basic configuration:
The preceding mermerrors is the configuration node for
Today, I am not very busy at work. I want to summarize reflection, extension methods, and lambda expression usage. I wrote a small DEMO record myself, I hope that you will not find any mistakes right away. In this article, I will only describe my
While debugging the program, my colleague found that the System. NullReferenceException occurred when adding the record.
DictBase dict = new DictBase ();Dict. DictCode = "aaa ";Dict. DictName = "bbb ";Dict. Save ();
Compile the query Information
Parameters and values are transmitted between ASP. NET web pages. There are many methods, such as Application, Cookie, Session, or Querystring.Most of the programs developed by Insus. NET are passed parameters and values between the backend, so
Integer or decimal point: ^ [0-9] + \. {} [0-9] {} $Only numbers are allowed: "^ [0-9] * $ ".Only n digits can be entered: "^ \ d {n} $ ".You can only enter at least n digits: "^ \ d {n,} $ ".Only m ~ can be input ~ N-digit :. "^ \ D {m, n} $"Only
Func delegate
Encapsulate a method that has two parameters and returns the type value specified by the TResult parameter.
Syntax
TResult Func
Type parameter in T1 the first parameter type of the delegate encapsulated method. This type of
Format of the web. conf configuration file The configuration of the web. config file should be adjusted when other rules are imported: 1. You do not need to add "/" at the beginning of the match statement, for example:To: (Note: remove the first "/"
After the project has been completed for a while, I have always wanted to write a blog to summarize it. I have never written a quality blog before. first, I was afraid that I could write a joke by everyone. Second, I was afraid that I could mislead
ASP. NET Web API is. NET Framework, Web API can be understood as a RESTful Web service, while the WCF Service carried by IIS is a SOAP-based Web service. The so-called RESTful is an application or design that meets the REST principles. What is the
This is a simple unoptimized implementation.
public static System.Drawing.Image GetImageThumb(System.Drawing.Image sourceImg, int width, int height) { System.Drawing.Image targetImg = new System.Drawing.Bitmap(width, height);
When using the operation stream in c #, you must first Add the following two namespaces
Using System. IO;
Using System. Collections;
I have summarized the following methods for IO operations, which are simple but practical.
Directory Creation
This is a class library written in VB.net to connect to MySql. You can use this class library to directly operate MySql databases.
Before using this class library, you must install
Odbc mysql 3.51: http://www.mysql.com/downloads/api-myodbc-3.51.html
On The BLL layer, I personally feel that it is quite different from the general NH/IB OR ing.
Integration: it can deal with databases and play the role of DAL.
Start: You can directly deal with the BP/Stub Layer/or client as its service
Jquery. pagination. js is used to implement the effect of refreshing new pages.
1. Plug-in parameter list
2. Page Content:
Porschev ---- refreshing page flip Posrchev ---- refreshing pagination Number name
3. Page. cs file content:
Using
It usually takes some time to connect to the database server, and the server also needs some resources to process the connection. Web applications sometimes process thousands of connections and require a considerable amount of resources to process
The. Net namespace corresponding to this article is System. Xml. Serialization. The sample code in this article needs to reference this namespace.Why serialization and deserialization?.. Net program execution, the objects reside in the memory; if
Add the ASP. NET account permission to the following directory.C:/WINDOWS/Microsoft. NET/Framework/v2.0.50727/Temporary ASP. NET Files
ASP. NET accounts have the following permissions: Read and run, list folder directories, read, and write.
This
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service