Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ASP.NET


      ״̬¹ÜÀíÊÇÄú¶Ôͬһҳ»ò²»Í¬Ò³µÄ¶à¸öÇëÇóά»¤×´Ì¬ºÍÒ³ÐÅÏ¢µÄ¹ý³Ì¡£ÓëËùÓлùÓÚ HTTP µÄ¼¼ÊõÒ»Ñù£¬Web ´°ÌåÒ³ÊÇÎÞ״̬µÄ£¬ÕâÒâζ×ÅËüÃDz»×Ô¶¯Ö¸Ê¾ÐòÁÐÖеÄÇëÇóÊÇ·ñÈ«²¿À´×ÔÏàͬµÄ¿Í»§¶Ë£¬»òÕßµ¥¸öä¯ÀÀÆ÷ʵÀýÊÇ·ñÒ»Ö±Ôڲ鿴ҳ»òÕ¾µã¡£´ËÍ⣬µ½·þÎñÆ÷µÄÿһÍù·µ¹ý³Ì¶¼½«Ïú»Ù²¢ÖØд´½¨Ò³£»Òò´Ë£¬Èç¹û³¬³öÁ˵¥¸öÒ³µÄÉúÃüÖÜÆÚ£¬Ò³ÐÅÏ¢½«²»´æÔÚ¡£
ASP.NET Ìṩ¶àÖÖ·½Ê½À´ÔÚ·þÎñÆ÷Íù·µ¹ý³ÌÖ®¼äά»¤×´Ì¬¡£¶ÔÕâЩ״̬¹ÜÀíÑ¡ÏîµÄÑ¡ÔñÖ÷Ҫȡ¾öÓÚÄúµÄÓ¦ÓóÌÐò£¬²¢ÇÒÓ¦»ùÓÚÒÔÏÂÌõ¼þ£º
·ÐèÒª´æ´¢µÄÐÅÏ¢Á¿Óжà´ó£¿
·¿Í»§¶ËÊǽÓÊܳ־ÃÐԵĻ¹ÊÇÄÚ´æÖÐµÄ Cookie£¿
·Òª½«ÐÅÏ¢´æ´¢ÔÚ¿Í»§¶Ë»¹ÊÇ·þÎñÆ÷ÉÏ£¿
·ÐÅÏ¢ÊÇ·ñÊÇÃô¸ÐÐÅÏ¢£¿
·Äú¶ÔÓ¦ÓóÌÐòÉ趨ÁËʲôÑùµÄÐÔÄܺʹø¿íÌõ¼þ£¿
·Ä¿±êä¯ÀÀÆ÷ºÍÉ豸¾ßÓÐʲôÑùµÄ¹¦ÄÜ£¿
·ÄúÊÇ·ñÐèÒª´¢´æ»ùÓÚÓû§µÄÐÅÏ¢£¿
·ÐÅÏ¢ÐèÒª´æ´¢¶à³¤Ê±¼ä£¿
ÄúʹÓà Web ³¡£¨¶à¸ö·þÎñÆ÷£©¡¢Web Ô°£¨Ò»¸ö¼ÆËã»úÉϵĶà¸ö½ø³Ì£©»¹Êǵ¥¸ö½ø³ÌÀ´ÔËÐÐÓ¦ÓóÌÐò£¿
 
Ò»¡¢¿Í»§¶Ë״̬¹ÜÀíÑ¡Ïî
ʹÓÿͻ§¶ËÑ¡Ïî´æ´¢Ò³ÐÅÏ¢²»Ê¹Ó÷þÎñÆ÷×ÊÔ´¡£ÕâЩѡÏîÍùÍù¾ßÓÐ×îµÍµÄ°²È«ÐÔµ«¾ßÓнϿìµÄ·þÎñÆ÷ÐÔÄÜ£¬ÒòΪ¶Ô·þÎñÆ÷×ÊÔ´µÄÒªÇóÊÇÊʶȵġ£µ«ÊÇ£¬ÓÉÓÚ±ØÐ뽫ÐÅÏ¢·¢Ë͵½¿Í»§¶ËÀ´½øÐд洢£¬Òò´Ë¶ÔÓÚÒÔÕâÖÖ·½Ê½¿ÉÒÔ´æ´¢¶àÉÙÐÅÏ¢´æÔÚÒ»¶¨µÄ¿Í¹ÛÏÞÖÆ¡£
ÒÔÏÂÊÇ ASP.NET Ö§³ÖµÄ¿Í»§¶Ë״̬¹ÜÀíÑ¡Ï
ÊÓͼ״̬¡¢¿Ø¼þ״̬¡¢Òþ²Ø×ֶΡ¢Cookie¡¢²éѯ×Ö·û´®
 
1¡¢ÊÓͼ״̬
Web ´°ÌåÒ³Ìṩ ViewState ÊôÐÔ×÷ΪÄÚÖýṹ£¬ÔÚ¶ÔͬһҳµÄ¶à¸öÇëÇó¼ä×Ô¶¯±£ÁôÖµ¡£ÊÓͼ״̬×÷ΪҳÖеÄÒþ²ØÓòÀ´½øÐÐά»¤¡£
¿ÉÒÔʹÓÃÊÓͼ״̬ÔÚÒ³»Ø·¢µ½×ÔÉíʱ¿çÔ½Íù·µ¹ý³Ì´æ´¢Äú×Ô¼ºµÄÒ³Ìض¨Öµ¡£ÀýÈ磬Èç¹ûÄúµÄÓ¦ÓóÌÐòÕýÔÚά»¤Óû§Ìض¨µÄÐÅÏ¢£¨¼´£¬¸ÃÐÅÏ¢ÔÚÒ³ÉÏʹÓ㬵«²»ÊÇÈκοؼþËù±ØÐèµÄ²¿·Ö£©£¬Ôò¿ÉÒÔʹÓÃÊÓͼ״̬´æ´¢¸ÃÐÅÏ¢¡£
ʹÓÃÊÓͼ״̬µÄÓŵãΪ£º
·²»ÐèÒªÈκηþÎñÆ÷×ÊÔ´   ÊÓͼ״̬°üº¬ÔÚÒ³´úÂëÄڵĽṹÖС£
·ÊµÏÖ¼òµ¥   ÊÓͼ״̬ÎÞÐèʹÓÃÈκÎ×Ô¶¨Òå±à³Ì¡£Ä¬ÈÏÇé¿ö϶ԿؼþÆôÓÃ״̬Êý¾ÝµÄά»¤¡£
·ÔöÇ¿µÄ°²È«¹¦ÄÜ   ÊÓͼ״̬ÖеÄÖµ¾­¹ý¹þÏ£¼ÆËãºÍѹËõ£¬²¢ÇÒÕë¶Ô Unicode ʵÏÖ½øÐбàÂ룬Æ䰲ȫÐÔÒª¸ßÓÚʹÓÃÒþ²ØÓò¡£
ʹÓÃÊÓͼ״̬µÄȱµãΪ£º
·ÐÔÄÜ×¢ÒâÊÂÏî   ÓÉÓÚÊÓͼ״̬´æ´¢ÔÚÒ³±¾Éí£¬Ò


Ïà¹ØÎĵµ£º

dz̸ASP.net°²È«±à³Ì

ÔÚWeb±à³Ì¹ý³ÌÖУ¬´æÔÚןܶలȫÒþ»¼¡£±ÈÈçÔÚÒÔÇ°µÄASP°æ±¾ÖУ¬CookieΪ·ÃÎÊÕߺͱà³ÌÕ߶¼ÌṩÁË·½±ã£¬²¢Ã»ÓÐÌṩ¼ÓÃܵŦÄÜ¡£´ò¿ªIEä¯ÀÀÆ÷£¬Ñ¡Ôñ“¹¤¾ß”²Ëµ¥ÀïµÄ“InternetÑ¡Ï¬È»ºóÔÚµ¯³öµÄ¶Ô»°¿òÀïµ¥»÷“ÉèÖÔ°´Å¥£¬Ñ¡Ôñ“²é¿´Îļþ”°´Å¥£¬ÔÚµ¯³öµÄ´°¿ÚÖУ¬¾Í»áÏÔʾӲÅÌÀï ......

asp.net¿Í»§¶Ë½Å±¾µ÷ÓÃÒ³Ãæ·½·¨

  µÚÒ»²½£º
½«Ä³¸öÒ³ÃæµÄ·½·¨ ÓÐ webmethod  attribute;
[WebMethod]
//Ö»ÄÜÊÇ public static µÄ·½·¨
public static DateTime GetCurrentTime()
{
return DateTime.UtcNow;
}
µÚ¶þ²½£º
 Ò³ÃæÓÐÒ»¸öScriptManager ÉèÖÃËüµÄenablepagemethod=true;
asp:ScriptManager ID="Scri ......

ASP.NET µÄģ̬´°ÌåµÄ´¦Àí

£¨Ò»£© ģ̬´°ÌåµÄ´¦Àí·½·¨
1  javascript Óï·¨£º
var returnValue = window.showModalDialog(sURL [, vArguments] [,sFeatures])
·Çģ̬´°Ì壺
vReturnValue = window.showModelessDialog(sURL [, vArguments] [,sFeatures])
²ÎÊý˵Ã÷£º
sURL£º±ØÑ¡²ÎÊý£¬ÀàÐÍ£º×Ö·û´®¡£ÓÃÀ´Ö¸¶¨¶Ô»°¿òÒªÏÔʾµÄÎĵµµÄURL¡£
vAr ......

ʲôÊÇAsp.NetÓ¦ÓóÌÐò

 ASP.NET defines an application as the sum of all files, pages, handlers, modules, and executable code that can be invoked or run in the scope of a given virtual directory (and its subdirectories) on a Web application server. For example, an "order" application might be published in the "/order ......

ASP.netÖеÄAJAXѧϰ¼Ç¼

 ½ñÌìÎÒÖ÷ҪѧϰÁËUpdateModeÊôÐÔ¼°Ê¹ÓÃUpdateTriggers£¬°ÑÊéÖÐËù½ÌÊÚµÄÄÚÈÝÓöà¸öÀý×Óʵ¼ùÁËһϣ¬È·ÊµÃ÷°×ÁËÐí¶à¡£
  UpdateMode
      Ê×ÏÈÔÚÉÏһƪҲÌáµ½¹ýÕâÑùÒ»¸öÀíÂÛ£ºÔÚ̸ÂÛUpdatePanel¿Ø¼þµÄË¢ÐÂʱ£¬µ±UpdatePanel¿Ø¼þÖеÄ×ӿؼþ´¥·¢Async-Postback¶¯×÷ʱ£¬Ë¢ÐµÄÇøÓòÊ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ