ArticleDirectory
Preface
Tools
Others
Preface
How can we make Asp.net websites fly faster and have better performance? -- This is a problem that many developers often think about. I sometimes perform a lot of tests or ask someone
Number Type Extension
Name
Description
Number. Format Function
Set the numeric format using a fixed culture.
Number. localeformat Function
Set the number format in the current region.
After a long time, I couldn't receive emails. It turned out that the parameter was set incorrectly. The complete source code is as follows:
MailServer = "172.16.1.130" 'smtp server address mailname = "bany@banysky.com" 'mail mailbox
I have read this article ASP. NET 2.0 internal changes, due to time reasons, I did not pay attention to it at that time. I read it again today and thought it was very good. Many people scored 9 points in the original English version.
In ASP. NET 2.0
1. Create a class library mytestdll.
2. Right-click the project "mytestdll"-"properties-" generate-"and select" register for com"
3 open the assemblyinfo. CS file and modify [Assembly: comvisible (true)]
4. Open the command line prompt of visual
This function can read all the image paths in the HTML code, so that you can save the image paths obtained in batches to the database, add watermarks to images in batches, or scale down images in batches, it is very convenient to operate as
Asp.net form verification controls use collection
Verify the price (only integers or decimals are allowed ):
Verify email format: faron@163.com
Format of the verified phone number: 0571-88888888,13088888888
The maximum length of input characters
First, after the ACCESS database is imported to SQL, the primary keys of each table need to be reset, because the primary keys will be dropped during the import. Then, the primary key needs to be set to auto-increment.
Second, replace the connection
This Code reads records from the database and uses multiple layers to generate xml and generate files.
Clientdao. mtvxmldao Dao = new mtvxmldao ();// Place user code here to initialize the pageDatatable dtagent = Dao. mtvxmlagent ("agent_list").
In the past few years, it has helped several large and medium-sized customers in North America establish their enterprise sites. A major problem is CMS (Content Management System ). In the past few years, many Asp.net CMS platforms have been
Solution:
In the system. Web Section of Web. config, add
-->
.
Other solutions on the Internet include:
1. Add to the system. Web node.
Or add system. Web. Extensions references to the project.
2. Check the system time.
Original article: http://www.c-sharpcorner.com/Code/2004/Nov/patchdownload.aspAuthor: Sergey STranslation: Lu YipingAddress: http://blog.csdn.net/luyiping/archive/2004/11/20/188198.aspx
Dynamic File Download modification in ASP. NET
Source code:
Connect to the MDF database file:
| Datadirectory | the default value is the app_data folder.
Use resx:
In the resx file sr under the app_globalresources folder, add the key-value object: Login. access method:
Loginlink. innertext = resources. sr.
Localized attribute of page: uiculture | cultural method for setting the culturepage class: initializeculture ()..... get local culture configuration: request. userages system. globalization. cultureinfo class: New cultureinfo ("de-de");
Enter the code in the itemdatabound event of the DataGrid:
1if (E. Item. itemtype = listitemtype. Item | E. Item. itemtype = listitemtype. alternatingitem)
2 {
3 E. Item. attributes ["onmouseover"] = "style. cursor = 'hand'; style.
Reference: http://www.codeguru.com/csharp/.net/net_asp/mvc/working-with-asynchronous-operations-in-asp.net-mvc.htm
ASP. net MVC 4 adds the async keyword to make asynchronous programming very easy, but this article is not about this, but about the
Extraction from zero programming
1. database access performance optimization
A. Minimize database connections and make full use of each database connection: It is overhead to create, open, and close a connection. You can use connection pool B to
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.