Address: http://scottwater.com/blog/archive/quick-tips-for-asp-net-part-one/
1. Do not use the autopostback attribute on the dropdownlist control to simply
Use client code to complete functions <Asp: dropdownlist runat = "server" id = "dropdown" onchange = "If (this. selectedindex> 0)
{Window. Location = Window. Location. pathname + '? T = '+ this [This. selectedindex]. value;} "/>
2. Never use the ASP. NET label control.
The label will append additional code that is not conducive to the style. Use literal instead.
3. Use the ASP. NET repeater instead of datalist, DataGrid, and dataview controls
4. Understand how to upgrade tively use caching
The memory is very precious. Do not over-use the cache.
5. always set a memory threshold for your apppool.
Set the memory size for the application pool.
6. Use appoffline.htm for updates
Appoffline.htm is used as a temporary page in the logging program.
7. Always check page. isvalid in your button's eventhandler.
All inputs are harmful.
8. To create fully qualified URLs, use the new virtualpath class.
Use virtualpathutility to create a qualified URL String relativepath = "~ /Somefolder/test/123. aspx"
Uri newuri = new uri (request. url, virtualpathutility. toabsolute (relativepath ));