Ìá¸ßAsp.NetÍøÕ¾ÐÔÄÜ
²»ÒªÊ¹Óò»±ØÒªµÄSession£¬ºÍASPÖÐÒ»Ñù£¬ÔÚ²»±ØÒªµÄʱºò²»ÒªÊ¹ÓÃSession
²»Ê¹Óò»±ØÒªµÄServer Control
²»Ê¹Óò»±ØÒªµÄViewState
²»ÒªÓÃException¿ØÖƳÌÐòÁ÷³Ì
½ûÓÃVBºÍJscript¶¯Ì¬Êý¾ÝÀàÐÍ
ʹÓô洢¹ý³ÌÍê³ÉÊý¾Ý·ÃÎÊ
Ö»¶ÁÊý¾Ý·ÃÎʲ»ÒªÊ¹ÓÃDataSet
¹Ø±ÕASP.NETµÄDebugģʽ
ʹÓÃASP.NetOutput Cache »º³åÊý¾Ý
Ìá¸ßÐÔÄܵÄʵÓü¼ÇÉ
¾¡Á¿ÓÃSQL·µ»ØDataGridÐèÒª°ó¶¨µÄDataSet,¾¡Á¿²»¶ÔDataSet½øÐжþ´Î¼Ó¹¤£¬Ìرð²»Òª¶ÔDataSet½øÐдóÁ¿É¾³ý£¬Êµ¼ùÖ¤Ã÷ÕâºÜÂý¡£ ²»È縴ÖƲ¿·ÖÊý¾Ý¡£
¾¡Á¿°Ñ²éѯÊý¾ÝµÄÊý¾Ý¿â²Ù×÷´ÎÊýѹËõµ½×îÉÙ£¬¾¡Á¿1-2´ÎÊý¾Ý¿â²Ù×÷¾Í¿ÉÍê³É£»
×¢ÒâÓÅ»¯Êý¾Ý¿â²éѯ²Ù×÷
²»ÒªÔÚÒ³Ãæ¼ÓÔØʱĬÈÏÑ¡ÔñÈ«²¿Êý¾Ý£¬¾¡¹Ü¿ÉÒÔ·½±ãºóÐø²Ù×÷£¬µ«Óû§»áÒÔΪ“»¹Ã»ÓвÙ×÷¾ÍÕâôÂý”
½¨Ò龡Á¿ÓñȽϸßЧµÄSQL´úÌæºóÐø¸´ÔÓµÄDataSet¶þ´Î¼Ó¹¤Ìá¸ßÐÔÄܵÄʵÓü¼ÇÉ
½öÔÚÐèÒªµÄʱºò´ò¿ªÊý¾Ý¿âÁ¬½Ó
Ò»µ©Êý¾Ý¿â²Ù×÷Íê±Ï£¬Ò»¶¨¹Ø±ÕÁ¬½Ó
ÔڹرÕÁ¬½Óʱ¼ÇµÃɾ³ýÁÙʱ¶ÔÏó
ÔڹرÕÁ¬½ÓÇ°£¬È·±£¹Ø±ÕÈκÎÓû§¶¨ÒåÊÂÎñ
ÏÔʾ·Ç½»»¥ÐÔÊý¾Ý£¬Ê¹ÓÃSQLDataReader¿ÉÒÔ»ñµÃ×î¼ÑÐÔÄÜ
×¢Òâ¹²ÏíÄÇЩ¾¹ý¸´ÔÓ´¦Àí»òÂþ³¤²éѯ²ÅµÃµ½µÄÊý¾Ý
ÔÚÒ³ÃæÌøתʱ¼ÇµÃÖÕÖ¹µ±Ç°Ò³ÃæµÄ´¦Àí
ÓдóÁ¿Á¬½ÓµÄ×Ö·û´®²Ù×÷²»ÒªÊ¹ÓÃ+£¬¸ÄÓÃStringBuilder
Ïà¹ØÎĵµ£º
ÕâЩÄÚÈݱȽϼòµ¥£¬µ«ÊDZȽÏÈÝÒ×Íü¼Ç¡£ÌØдÏÂÀ´°ïÖú¼ÇÒ䣺£¨ÕâÀïÓõÄÊÇTreeViewºÍXmlDataSource°ó¶¨µÄÀý×Ó£©
µÚÒ»ÖÖ£º¶ÔÊôÐÔµÄÖµÖ±½Ó½øÐа󶨡£
Ê×ÏÈ £ºÀÒ»¸öTreeViewµ½Ò³ÃæÉÏ£¬IDÃüÃûΪ"TrvLeft"¡£È»ºóÔÚºǫ́½øÐа󶨣¬
´úÂëÈçÏ£º
XmlDataSource XmlDb = new Xml ......
1. ÔÚASP.NETÖÐרÓÃÊôÐÔ£º
»ñÈ¡·þÎñÆ÷µçÄÔÃû£ºPage.Server.ManchineName
»ñÈ¡Óû§ÐÅÏ¢£ºPage.User
»ñÈ¡¿Í»§¶ËµçÄÔÃû£ºPage.Request.UserHostName
»ñÈ¡¿Í»§¶ËµçÄÔIP£ºPage.Request.UserHostAddress
2. ÔÚÍøÂç±à³ÌÖеÄͨÓ÷½·¨£º
»ñÈ¡µ±Ç°µçÄÔÃû£ºstatic System.Net.Dns.GetHostName()
¸ù¾ÝµçÄÔÃûÈ¡³öÈ«²¿IPµØÖ ......
ASP.NET 4µÄWeb Formsµ±ÖУ¬×îÁîÈ˼¤É͵ģ¬ÔòĪ¹ýÓÚÊÇURL Routing»úÖƵÄÈ«ÃæÖ§³Ö¡£¹ýÈ¥ÔÚASP.NET 3.5 SP1µ±ÖУ¬Web Forms»ò¶à»òÉپͿªÊ¼Ö§³ÖURL Routing»úÖÆ£¬ËüÈÃÎÒÃÇÔÚÍøÖ·µÄ³ÊÏÖÒÔ¼°Ê¹ÓÃÉϸü¼ÓµÄÓе¯ÐÔ¡£
¹ýÈ¥ÎÒÃÇÔÚASP.NETµ±ÖУ¬Ï°¹ßÓÚµ×ÏÂÕâÑùµÄÍøÖ·³ÊÏÖ·½Ê½£º
http://myWebSite/EditProduct.aspx?Id=1
µ«×î½ü¼¸ÄêR ......
ASP.NETĸ°åµÄÓ¦Óã¨×ª£©
2009Äê11ÔÂ30ÈÕ ÐÇÆÚÒ» ÏÂÎç 01:11
ĸ°æÒ³ÊÇVS2005ÖÐÐÂÒýÈëµÄÒ»¸ö¸ÅÄËüºÜºÃµØʵÏÖ½çÃæÉè¼ÆµÄÄ£¿é»¯£¬²¢ÇÒʵÏÖʵÏÖÁË´úÂëµÄÖØÓá£Ëü¾ÍÏñ»éÉ´Ó°Â¥ÖеĻéÉ´Ä£°å£¬Í¬Ò»¸ö»éÉ´Ä£°å¿ÉÒÔ¸ø²»Í¬µÄÐÂÈËÓã¬Ö»Òª°ÑËûÃǵÄÕÕƬÌùÔÚÒÑÓеĻéÉ´Ä£°å¾Í¿ÉÒÔÐγÉÒ»ÕÅƯÁÁµÄ»éÉ´ÕÕƬ£¬ÕâÑù¿ÉÒÔ´ó´ó¼ò»¯»éÉ´ÒÕÊõÕ ......
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using MSXML2;
using System.Text.Regula ......