ASP.NETÒ³ÃæÉúÃüÖÜÆÚ
ÓкܶàÀíÓÉÈ¥½âÊÍÀí½âASP.NETÒ³ÃæÉúÃüÖÜÆÚÊǷdz£ÖØÒªµÄ£¬Ö÷ÒªÊÇҪȥÀí½âʲôµØ·½·ÅÖÃʲôÌض¨µÄ·½·¨£¬Ê²Ã´Ê±ºòÎÒÃÇÓ¦¸ÃÉèÖÃʲôÏà¹ØµÄÊôÐÔ¡£Èç¹ûÈ¥¿ª·¢×Ô¶¨ÒåµÄ·þÎñÆ÷¿Ø¼þ£¬Àí½âÉúÃüÖÜÆÚ¶Ô¾ÀÕý¿Ø¼þ³õʼ»¯Ê±ºòµÄ´íÎó£¬ÒÔ¼°Ê¹ÓÃview-stateºÍºǫ́´úÂëÉèÖÃÊôÐÔÊǷdz£ÓÐÓõġ££¨¿Ø¼þʼþÖ»ÓëASP.NETÒ³ÃæÏà¹Ø£©
Ò³ÃæÉúÃüÖÜÆÚÒª¿´ËüÊÇ·ñÊǵÚÒ»´ÎÇëÇ󣬻¹Êǻط¢£¨±¾ÉíÒ³ÃæÇëÇ󣩣¬×îºó¾ö¶¨ÊÇ·ñµ½Web·þÎñÆ÷¡£µ±Ò»¸öÍøÒ³±»Web·þÎñÆ÷ÇëÇóʱ£¬Ôڻط¢µ½webä¯ÀÀÆ÷֮ǰ£¬»á¾¹ýһϵÁв½Öè/ʼþ(Èç³õʼ»¯£¬¿Ø¼þʵÀý»¯£¬stateµÄ»Ö¸´ºÍ±£´æ£¬Ö´ÐÐʼþ´¦Àí´úÂ룬äÖȾ)¡£
Èç¹ûÎÒÃÇÕýÈ·µØʹÓúͲÙ×÷Ò³ÃæÉúÃüÖÜÆÚʼþ£¬Ëü¶ÔwebÓ¦ÓóÌÐò¿ª·¢»áÊÇÒ»¸ö·Ç³£·½±ãºÍÇ¿´óµÄ¹¤¾ß¡£
IIS : ËüÊÇMicrosoft .NETĬÈϵÄweb·þÎñÆ÷¡£IIS°ïÖúÄã·¢²¼web sitesºÍweb application¡£µ±IIS Web·þÎñÆ÷½ÓÊÜÒ»¸öWeb×ÊÔ´£¨Îļþ£©µÄÇëÇó£¬Ëü¼ì²éÎļþµÄÀ©Õ¹Ãû£¨ÀýÈ磺.aspx, ascx, .ashx ºÍ.asmx£©£¬È»ºó¾ö¶¨Ê¹ÓÃÄĸö ISAPI À©Õ¹À´´¦ÀíÕâ¸öÇëÇó£¬È»ºó´«µÝÕâ¸öÇëÇó¸øÕýÈ·µÄ ISAPIÀ©Õ¹¡£
ASPNET_ISAPI.DLL£º IIS¼ÓÔØÕâ¸ödll£¬È»ºó½«Ò³ÃæÇëÇó·¢Ë͸øÕâ¸ödll¡£Õâ¸ödllΪ½øÒ»²½´¦Àí¶ø¼ÓÔØHTTPRuntime ¡£
ASPNET_WP.EXE:Ëü°üº¬ÁËÓ¦ÓóÌÐò³Ø¡£Ã¿¸öÓ¦ÓóÌÐò³Ø¿ÉÒÔ°üº¬ÈÎÒâÊýÁ¿µÄÓ¦ÓóÌÐò¡£Ó¦ÓóÌÐò³ØÒ²³ÆΪӦÓóÌÐòÓò¡£µ±Ò»¸öÍøÒ³±»ÇëÇóʱ£¬²éÕÒIISµÄµ±Ç°µÄÓ¦ÓóÌÐòÕýÔÚÔËÐеÄÓ¦ÓóÌÐò³Ø£¬²¢ÇÒ½«ÇëÇóת·¢µ½¸÷×ԵŤ×÷½ø³Ì¡£
ͨ³£ä¯ÀÀÆ÷ÿ´Î·¢ËÍÇëÇóµÄʱºò£¬Ò³ÃæµÄÉúÃüÖÜÆÚÿ´Î¶¼»áÖ´ÐÐÒ»±é£¬Ò³ÃæµÄʵÀý±»´´½¨¡¢HTTP ÔËÐÐʱµ÷ÓÃProcessRequest ¡¢È»ºóÖ´ÐÐÆðʼҳ¡£
ÏÂÃæµÄ±í¸ñÏÔʾÁËÿ¸ö½×¶ÎºÍÏàÓ¦µÄʼþ£º
½×¶Î
ʼþ/·½·¨
Ò³Ãæ³õʼ»¯
Page_Init
¼ÓÔØView State
LoadViewState
»Ø·¢Êý¾Ý´¦Àí
LoadPostData
Ò³Ãæ¼ÓÔØ
Page_Load
»Ø·¢Í¨Öª
RaisePostDataChangedEvent
»Ø·¢Ê¼þ´¦Àí
RaisePostBackEvent
Ò³ÃæÔ¤äÖȾ
Page_PreRender
±£´æviewstate
SaveViewState
PageäÖÈ
Ïà¹ØÎĵµ£º
ΪÁËÄÜÈÃÀ´×Ô²»Í¬ÎÄ»¯Ï°¹ß»òʹÓò»Í¬ÓïÑÔ×÷ΪĸÓïµÄ·Ã¿ÍÄܹ»ÔĶÁÎÒÃǵÄÍøÕ¾£¬Ôò±ØÐëΪÕâЩ¶ÁÕßÌṩÓÃËûÃÇ×Ô¼ºµÄÓïÑԲ鿴ÍøÒ³µÄ·½·¨¡£Ò»ÖÖ·½·¨ÊÇ·Ö±ðÓø÷ÓïÑÔÖØд´½¨Ò³Ã棬µ«ÕâÖÖ·½·¨¿ÉÄÜÐèÒª´óÁ¿¹¤×÷Á¿¡¢ÈÝÒ׳ö´í²¢ÇÒÔÚ¸ü¸ÄÔʼҳʱºÜÄÑά»¤¡£ÀûÓà ASP.NET£¬¿ÉÒÔʹ´´½¨µÄÒ³Ãæ»ùÓÚä¯ÀÀÆ÷µÄÊ×Ñ¡ÓïÑÔÉèÖûòÓû§ÏÔʽѡÔñµÄÓïÑÔ ......
¸üз½·¨Ò»£¬Ö±½ÓÔÚGridViewÖÐÀ´¸üÐÂÊý¾Ý.
¸üз½·¨¶þ£¬´ò¿ªÒ»¸öеÄÒ³ÃæÀ´¸üÐÂÊý¾Ý.
//¸üÐÂ
protected void GridView1_RowEditing(object sender, GridViewEditEventArgs e)
{
GridView1.EditIndex = e.NewEditIndex;
&nbs ......
//ѹËõ
protected void btnY_Click(object sender, EventArgs e)
{
string rar;
RegistryKey reg;
string args;
ProcessStartInfo procStart;
Process process;
try
{
reg = Registry.ClassesRoot.OpenSubKey(@"Applications\WinRAR.exe\Shell\Open\Command"); ......