ASP.NETÒ³Ãæ¶ÔÏó
Ò»¡¢Cookie ¸ÅÊö
1¡¢·½°¸
Cookie ÌṩÁËÒ»ÖÖÔÚ Web Ó¦ÓóÌÐòÖд洢Óû§Ìض¨ÐÅÏ¢µÄ·½·¨¡£ÀýÈ磬µ±Óû§·ÃÎÊÄúµÄÕ¾µãʱ£¬Äú¿ÉÒÔʹÓà Cookie ´æ´¢Óû§Ê×Ñ¡Ïî»òÆäËûÐÅÏ¢¡£µ±¸ÃÓû§ÔٴηÃÎÊÄúµÄÍøվʱ£¬Ó¦ÓóÌÐò±ã¿ÉÒÔ¼ìË÷ÒÔÇ°´æ´¢µÄÐÅÏ¢¡£
2¡¢±³¾°
Cookie ÊÇһС¶ÎÎı¾ÐÅÏ¢£¬°éËæ×ÅÓû§ÇëÇóºÍÒ³ÃæÔÚ Web ·þÎñÆ÷ºÍä¯ÀÀÆ÷Ö®¼ä´«µÝ¡£Cookie °üº¬Ã¿´ÎÓû§·ÃÎÊÕ¾µãʱ Web Ó¦ÓóÌÐò¶¼¿ÉÒÔ¶ÁÈ¡µÄÐÅÏ¢¡£
ÀýÈ磬Èç¹ûÔÚÓû§ÇëÇóÕ¾µãÖеÄÒ³ÃæʱӦÓóÌÐò·¢Ë͸ø¸ÃÓû§µÄ²»½ö½öÊÇÒ»¸öÒ³Ã棬»¹ÓÐÒ»¸ö°üº¬ÈÕÆÚºÍʱ¼äµÄ Cookie£¬Óû§µÄä¯ÀÀÆ÷ÔÚ»ñµÃÒ³ÃæµÄͬʱ»¹»ñµÃÁ˸à Cookie£¬²¢½«Ëü´æ´¢ÔÚÓû§Ó²ÅÌÉϵÄij¸öÎļþ¼ÐÖС£
ÒÔºó£¬Èç¹û¸ÃÓû§ÔÙ´ÎÇëÇóÄúÕ¾µãÖеÄÒ³Ã棬µ±¸ÃÓû§ÊäÈë URL ʱ£¬ä¯ÀÀÆ÷±ã»áÔÚ±¾µØÓ²ÅÌÉϲéÕÒÓë¸Ã URL ¹ØÁªµÄ Cookie¡£Èç¹û¸Ã Cookie ´æÔÚ£¬ä¯ÀÀÆ÷±ã½«¸Ã Cookie ÓëÒ³ÇëÇóÒ»Æð·¢Ë͵½ÄúµÄÕ¾µã¡£È»ºó£¬Ó¦ÓóÌÐò±ã¿ÉÒÔÈ·¶¨¸ÃÓû§ÉϴηÃÎÊÕ¾µãµÄÈÕÆÚºÍʱ¼ä¡£Äú¿ÉÒÔʹÓÃÕâЩÐÅÏ¢ÏòÓû§ÏÔʾһÌõÏûÏ¢£¬Ò²¿ÉÒÔ¼ì²éµ½ÆÚÈÕÆÚ¡£
Cookie ÓëÍøÕ¾¹ØÁª£¬¶ø²»ÊÇÓëÌض¨µÄÒ³Ãæ¹ØÁª¡£Òò´Ë£¬ÎÞÂÛÓû§ÇëÇóÕ¾µãÖеÄÄÄÒ»¸öÒ³Ã棬ä¯ÀÀÆ÷ºÍ·þÎñÆ÷¶¼½«½»»» Cookie ÐÅÏ¢¡£Óû§·ÃÎʲ»Í¬Õ¾µãʱ£¬¸÷¸öÕ¾µã¶¼¿ÉÄÜ»áÏòÓû§µÄä¯ÀÀÆ÷·¢ËÍÒ»¸ö Cookie£»ä¯ÀÀÆ÷»á·Ö±ð´æ´¢ËùÓÐ Cookie¡£
Cookie °ïÖúÍøÕ¾´æ´¢ÓйطÃÎÊÕßµÄÐÅÏ¢¡£Ò»°ãÀ´Ëµ£¬Cookie ÊÇÒ»ÖÖ±£³Ö Web Ó¦ÓóÌÐòÁ¬ÐøÐÔ£¨¼´Ö´ÐÐ״̬¹ÜÀí£©µÄ·½·¨¡£³ý¶ÌÔݵÄʵ¼Ê½»»»ÐÅÏ¢µÄʱ¼äÍ⣬ä¯ÀÀÆ÷ºÍ Web ·þÎñÆ÷¼ä¶¼ÊǶϿªÁ¬½ÓµÄ¡£¶ÔÓÚÓû§Ïò Web ·þÎñÆ÷·¢³öµÄÿ¸öÇëÇó£¬Web ·þÎñÆ÷¶¼»áµ¥¶À´¦Àí¡£µ«ÊÇÔںܶàÇé¿öÏ£¬Web ·þÎñÆ÷ÔÚÓû§ÇëÇóҳʱʶ±ð³öÓû§»áÊ®·ÖÓÐÓá£ÀýÈ磬¹ºÎïÕ¾µãÉ쵀 Web ·þÎñÆ÷¸ú×Ùÿλ¹ºÎïÕߣ¬ÕâÑùÕ¾µã¾Í¿ÉÒÔ¹ÜÀí¹ºÎï³µºÍÆäËûµÄÓû§Ìض¨ÐÅÏ¢¡£Òò´Ë£¬Cookie ¿ÉÒÔ×÷ΪһÖÖÃûƬ£¬ÌṩÏà¹ØµÄ±êʶÐÅÏ¢°ïÖúÓ¦ÓóÌÐòÈ·¶¨ÈçºÎ¼ÌÐøÖ´ÐС£
ʹÓà Cookie Äܹ»´ïµ½¶àÖÖÄ¿µÄ£¬ËùÓÐÕâЩĿµÄ¶¼ÊÇΪÁË°ïÖúÍøÕ¾¼ÇסÓû§¡£ÀýÈ磬һ¸öʵʩÃñÒâ²âÑéµÄÕ¾µã¿ÉÒÔ¼òµ¥µØ½« Cookie ×÷Ϊһ¸ö Boolean Öµ£¬ÓÃËüÀ´Ö¸Ê¾Óû§µÄä¯ÀÀÆ÷ÊÇ·ñÒѲÎÓëÁËͶƱ£¬ÕâÑùÓû§±ãÎÞ·¨½øÐеڶþ´ÎͶƱ¡£ÒªÇóÓû§µÇ¼µÄÕ¾µãÔò¿ÉÒÔͨ¹ý Cookie À´¼Ç¼Óû§ÒѾµÇ¼£¬ÕâÑùÓû§¾Í²»±Øÿ´Î¶¼ÊäÈëƾ¾Ý¡£
3¡¢Cookie µÄÏÞÖÆ
´ó¶àÊýä¯ÀÀÆ÷Ö§³Ö×î´óΪ 4096 ×Ö½ÚµÄ Cookie¡£ÓÉÓÚÕâÏÞÖÆÁË Cookie µÄ´óС£¬×îºÃÓà Cookie
Ïà¹ØÎĵµ£º
ÔÚWeb±à³Ì¹ý³ÌÖУ¬´æÔÚןܶలȫÒþ»¼¡£±ÈÈçÔÚÒÔÇ°µÄASP°æ±¾ÖУ¬CookieΪ·ÃÎÊÕߺͱà³ÌÕ߶¼ÌṩÁË·½±ã£¬²¢Ã»ÓÐÌṩ¼ÓÃܵŦÄÜ¡£´ò¿ªIEä¯ÀÀÆ÷£¬Ñ¡Ôñ“¹¤¾ß”²Ëµ¥ÀïµÄ“InternetÑ¡Ï¬È»ºóÔÚµ¯³öµÄ¶Ô»°¿òÀïµ¥»÷“ÉèÖÔ°´Å¥£¬Ñ¡Ôñ“²é¿´Îļþ”°´Å¥£¬ÔÚµ¯³öµÄ´°¿ÚÖУ¬¾Í»áÏÔʾӲÅÌÀï ......
¼òµ¥¾ÍÏÂÔÚ.NET¿ª·¢ÍøÕ¾ÖÐÒýÓÃwebservice²¢ÇÒ·¢²¼µ½·þÎñÆ÷µÄ×ö·¨£¬ÕâÀï²»½ØͼÁË¡£
1¡¢ÔÚÍøÕ¾ÏîÄ¿ÉÏ£¬ÓÒ¼ü-->Ìí¼ÓwebÒýÓà £¬½«webÒýÓõĵØÖ·Õ³Ìù£¬ÀýÈç http://192.168.14.222:6666/IbeBaseWebServicePublicWeb/IbeJourneyOdd.asmx
2¡¢¸øwebserviceÆð±ðÃû£¬Ò²¾ÍÊÇÒÔºóÄãµ÷ÓõÄÃüÃû¿Õ¼ä ÀýÈçIbeJourneyOdd
ÕâÑùÔ ......
ÔÚweb¿ª·¢Öо³£»áÅöµ½cssÑùʽµÄÔËÓã¬ÎÒ¾ÍÔÚasp.netÖÐÔËÓÃÑùʽ½øÐÐÁË×ܽᣡ
1¡¢Ê¹ÓÃstyleÊôÐÔÉèÖÃÑùʽ
•
nʵÀý
•StyleÊôÐÔÉèÖÃ
<asp:TextBox ID="TextBox1" runat="server"
style="background-color:Red; font-size:15px">
</asp:TextBox>
2¡¢Ê¹ÓÃCssclassÊôÐÔÉèÖà ......
£¨Ò»£© ģ̬´°ÌåµÄ´¦Àí·½·¨
1 javascript Óï·¨£º
var returnValue = window.showModalDialog(sURL [, vArguments] [,sFeatures])
·Çģ̬´°Ì壺
vReturnValue = window.showModelessDialog(sURL [, vArguments] [,sFeatures])
²ÎÊý˵Ã÷£º
sURL£º±ØÑ¡²ÎÊý£¬ÀàÐÍ£º×Ö·û´®¡£ÓÃÀ´Ö¸¶¨¶Ô»°¿òÒªÏÔʾµÄÎĵµµÄURL¡£
vAr ......
What is ASP.NET
ASP.NET is a unified Web development model that includes the services necessary for you to build enterprise-class Web applications with a minimum of coding. ASP.NET is part of the .NET Framework, and when coding ASP.NET applications you have access to classes in the .NET Frame ......