Asp.net UI Performance tuning
1.using gizp compress page ,gif file can't be compressed.
2.put script at the bottom,and put css at the top.
3.make the css and js external.
4.load-on-demand.(If a UI block need to show by control.Set visibable=false. and enableviewstate=true,override the saveviewstate method.)
5.remove the duplicate js file.
6.set expire header to static files.
7.make fewer http requests
8.minimize the control id.
Ïà¹ØÎĵµ£º
ÔÚWeb±à³Ì¹ý³ÌÖУ¬´æÔÚןܶలȫÒþ»¼¡£±ÈÈçÔÚÒÔÇ°µÄASP°æ±¾ÖУ¬CookieΪ·ÃÎÊÕߺͱà³ÌÕ߶¼ÌṩÁË·½±ã£¬²¢Ã»ÓÐÌṩ¼ÓÃܵŦÄÜ¡£´ò¿ªIEä¯ÀÀÆ÷£¬Ñ¡Ôñ“¹¤¾ß”²Ëµ¥ÀïµÄ“InternetÑ¡Ï¬È»ºóÔÚµ¯³öµÄ¶Ô»°¿òÀïµ¥»÷“ÉèÖÔ°´Å¥£¬Ñ¡Ôñ“²é¿´Îļþ”°´Å¥£¬ÔÚµ¯³öµÄ´°¿ÚÖУ¬¾Í»áÏÔʾӲÅÌÀï ......
1. ´ò¿ªÐµĴ°¿Ú²¢´«ËͲÎÊý£º
¡¡¡¡´«ËͲÎÊý£º
response.write("£¼script£¾window.open(’*.aspx?id="+this.DropDownList1.SelectIndex+"&id1="+...+"’)£¼/script£¾")
¡¡¡¡½ÓÊÕ²ÎÊý£º
string a = Request.QueryString("id");
string b = Request.QueryString("id1");
¡¡¡¡
2.Ϊ°´Å¥Ìí¼Ó¶Ô»°¿ò
But ......
ת×Ô£ºhttp://www.gisall.com/?uid-7232-action-viewspace-itemid-1300
ÓÉÓÚÓõ½ÁËÎļþÉÏ´«¹¦ÄÜ£¬¾Í²éÁËһϡ£Óм¸ÖÖ°ì·¨À´ÔÊÐí¿Í»§¶ËÉÏ´«Îļþ£º
1¡¢asp.net×Ô¼ºµÄfileupload¿Ø¼þ¡£È±µã£ºÖ»ÄÜÔÚpostback·½Ê½Ï¹¤×÷£¬¼´Ê¹·ÅÔÚupdatapanelÖÐÒ²±ØÐëË¢ÐÂÒ³Ãæ²ÅÐС£ÏÖÔÚŪ¸öË¢ÐÂÒ³ÃæµÄ¶«Î÷»áºÜûÃæ×Ó£¬ËùÒÔÒªÉÏajaxµÄ¡£ÏÂÃ漸¸ ......
Äú¿ÉÒÔ¾²Ì¬µØΪ TreeView ¿Ø¼þ´´½¨½Úµã -- ¼´ÔÚÉè¼Æʱ´´½¨¡£Èç¹ûÒª´´½¨¾ßÓй̶¨ÏîµÄÊ÷£¬ÕâÖÖ·½Ê½Ê®·ÖÓÐÓá£
˵Ã÷£º ²»ÄÜÒÔ¾²Ì¬·½Ê½¶¨Òå½Úµã£¬Ò²²»Äܽ«Êý¾Ý°ó¶¨µ½ TreeView ¿Ø¼þ¡£
Ò»¡¢ÔÚ TreeView ¿Ø¼þÖÐÌí¼Ó½Úµã
1¡¢ÔÚ“Éè¼Æ”ÊÓͼÖУ¬ÓÒ¼üµ¥»÷ TreeView ¿Ø¼þ£¬ÔÙµ ......