ASP.NETÒ³Ã滺´æµÄ¼¸µãÌå»á
ASP.NETÒ³Ã滺´æµÄ¼¸µãÌå»á
¾¡¹Ü±¾ÎĵÄ×÷ÕßдµÄºÜ¼òµ¥£¬µ«ÊÇÏàÐÅͨ¹ýÕâЩÎÄ×Ö£¬»¹ÊÇÄܶԴó¼ÒÁ˽âASP.NETÒ³Ã滺´æÓкܴóµÄ°ïÖú¡£
Ç°¼¸ÌìÓöµ½¸öÎÊÌ⣬°Ù˼²»µÃÆä½â¡£ºóÀ´²éÔÄÁËһЩ×ÊÁÏÐÄÀï²ÅÓÐÁ˵ã˼·¡£°Ñ×Ô¼ºÓöµ½µÄÎÊÌâ¼Ç¼ÏÂÀ´Ï£ÍûÄܸøÆäËûµÄÔ°ÓÑһЩ°ïÖú°É¡£
ÊÂÇéÊÇÕâÑùµÄ¡£ÎÒµÄÒ»¸öASP.NETÒ³ÃæÓÃwindow.openµ¼º½ºóÔٴηÃÎÊʱûÓеõ½¸üУ¬È·ÇеÄ˵ÊÇÔٴηÃÎÊʱ¸ù±¾¾ÍûÓзÃÎÊ·þÎñÆ÷¡£¿ÉÊÇÕâ¸öÏÖÏóÔÚÎҵĻúÆ÷Éϲ¢Ã»ÓгöÏÖ£¬¶øÏîÄ¿×éÖÐÆäËûµÄ»úÆ÷¶¼ÓдËÎÊÌâ¡£µ±Ê±ÎÒÕâ¸öÓôÃÆÄÅ£¬ÒòΪ²»·½±ãµ÷ÊÔ£¬×îºó¾ÍÔÚÒ³ÃæÉÏÊä³öºÃ¶àalert¡£ÖÕÓÚÔÚ¼¸´ÎÊÔÑéÖ®ºó·¢ÏÖÁËÎÊÌâµÄËùÔÚ¡£
ÆäÖ÷ÒªÎÊÌâ¾ÍÊÇIE»º´æÁËÒ³Ã棬µ±·þÎñÆ÷¶Ë³öÏÖ¸üÐÂʱIE²¢Ã»Óмì²éµ½¡£ÎҵĻúÆ÷ûÓÐÎÊÌâÊÇÒòΪÎÒµÄieÉèÖÃΪÿ´Î·ÃÎÊÒ³Ã涼Ҫ¼ì²é¸üУ¬ËûÃǵÄÔòÊÇ×Ô¶¯¼ì²é¸üС£ÓÉÓÚÎÒÔٴ½µ½Ò³ÃæÓõÄÊÇÇ°¶ËµÄwindow.open·½·¨£¬´Ë·½·¨²»ÄÜʹä¯ÀÀÆ÷µÄ×Ô¶¯¼ì²éÆð×÷Óá£
ÉÏÃæµÄÐðÊö±È½ÏÂÒ£¬²»ÖªµÀ´ó¼ÒÄܲ»ÄÜ¿´¶®¡£ÏÂÃæÎÒ˵ϾßÌåµÄ½â¾ö·½·¨°É¡£
·½·¨Ò»£ºµ¼º½Ê±Ó÷þÎñÆ÷¶ËµÄResponse.Redirect·½·¨£¬»òÕßÓÃÇ°¶ËµÃwindow.location.replace·½·¨¡£
·½·¨¶þ£º½ûÓÃASP.NETÒ³Ã滺´æ¡£
ÔÚ±ØÒªµÄʱºòÎÒ»¹ÊÇÍƼö·½·¨¶þµÄ¡£ÒòΪÎÒÃÇ×ö¿ª·¢µÄ²»ÄÜ¿ØÖÆä¯ÀÀÆ÷µÄÉèÖá£Óû§Èç¹û°ÑIEÉèÖÃΪ´Ó²»¼ì²é¸üлº´æµÄÎÊÌâÔò²»ºÃ±ÜÃ⣬ËùÒÔ»¹ÊÇÓ÷½·¨¶þ£¬ÈÃIEµÄÁÙʱÎļþ¼Ð²»´æÔÚÒ³ÃæÎļþ¡£
ÁíÍ⣬ÊÇ·ñ½ûÓÃÒ³Ã滺´æÒª¸ù¾Ýʵ¼ÊÇé¿öÀ´Ëµ£¬Æð³õÎÒÈÏΪҳÃ滺´æÖ»ÊÇ»º´æÔÚ·þÎñÆ÷£¬ºóÀ´¿´ÁËһƪblog
·¢ÏÖ»º´æµÄÒâÒ廹ÊǺܴóµÄ¡£ÔںܶàÇé¿öÏ¿ÉÒÔ´ó´ó¼õС·þÎñÆ÷µÄѹÁ¦¡£Ö»²»¹ý¿ª·¢¹ý³ÌÖÐÒª¶à¶à´ÓÐèÇó³ö·¢£¬²»ÄÜäĿµÄÉèÖÃʲôÊôÐÔ¡£
Ïà¹ØÎĵµ£º
ASP.NET »º´æ£º·½·¨ºÍ×î¼Ñʵ¼ù
2009-11-28 16:49
ÕªÒª£ºASP.NET ÌṩÈýÖÖÖ÷ÒªÐÎʽµÄ»º´æ£ºÒ³Ã漶Êä³ö»º´æ¡¢Óû§¿Ø¼þ¼¶Êä³ö»º´æ£¨»ò³ÆΪƬ¶Î»º´æ£©ºÍ»º´æ API¡£Êä³ö»º´æºÍƬ¶Î»º´æµÄÓŵãÊǷdz£Ò×ÓÚʵÏÖ£¬ÔÚ´ó¶àÊýÇé¿öÏ£¬Ê¹ÓÃÕâÁ½ÖÖ»º´æ¾Í×ã¹»ÁË¡£¶ø»º´æ API ÔòÌṩÁ˶îÍâµÄÁé»îÐÔ£¨Êµ¼ÊÉÏÊÇÏ൱´óµÄÁé»îÐÔ£©£¬¿ÉÓÃÓÚÔÚÓ¦Ó ......
Ç°¶Îʱ¼äÓÉÓÚ³ÌÐò³öÏÖÁ˱ȽϴóµÄÐÔÄÜÎÊÌ⣬ÊÓͼ£¨View£©Ö®¼äµÄÌøתËٶȷdz£Âý¡£Í¨¹ýFiddlerµ÷ÊԺͷÖÎö£¬²éÕÒµ½ÊÇÓÉÓÚÔÚÊÓͼ(View)ת»»
£¨PostBack£©¹ý³ÌÖУ¬¿Í»§¶Ë¸ø·þÎñÆ÷¶ËµÄ·¢ËÍ×Ö½ÚÊý·Ç³£´ó£¬Ò»°ãÔÚ30KÒÔÉÏ£¬¾ÍÏ൱ÓÚ¿Í»§¶Ëÿ´Î¶¼Òª¸ø·þÎñÆ÷ÉÏ´«´óÊ®KµÄÊý¾ÝÁ¿£¬ÕâÈç¹ûÊDZȽÏ
ºÃµÄÍøÂç»·¾³ÏÂÍêÈ«ÊÇ¿ÉÒÔºöÂԵģ¬µ«ÊÇÄ ......
asp.netĬÈϵıàÂëÊÇUTF-8
jsÎļþÀïµÄ±àÂëÒ²ÊÇUTF-8
µ±ÄãÒªÔÚaspxÒ³ÃæÉϽøÐд«ÖÐÎIJÎÊýʱ»á³öÏÖÂÒÂë
<-----request.aspx--½ÓÊÕ²ÎÊýÒ³----->
<----response.aspx--´«ËͲÎÊýÒ³----->
ÀýÒ»£º<a href="request.aspx?str=ÖйúÈË"></a>
½â¾ö°ì·¨Ò»£º
1.¿ÉÒԺ͸ÄwebconfigµÄ±àÂë È磺
  ......
Õ⼸ÌìÅöµ½¸öºÜÆæ¹ÖµÄÎÊÌ⣬ƽ³£ÔÚÏîÄ¿Öдӹ¤¾ßÏäÖУ¬°Ñ¿Ø¼þÍϵ½±à¼Çø£¬ÄÇÊÇÔÙ¼òµ¥ÈÝÒײ»¹ýÁË¡£
¿ÉÊǼ¸ÌìÇ°Åöµ½¾ÍÊÇ£¬ÎÞÂÛÄãÔõôÍÏ£¬¶¼ÎÞ·¨Íϵ½±à¼ÇøÖУ¬Çл»µ½Ô´Â룬ÔÙÍϵÄʱºòÊÇ¿ÉÒԵģ¬²úÉúÁËHTML´úÂë
£¬ÔÙ½«ËüתÊÓͼµÄʱºò£¬·¢ÏÖÎÞ ·¨Õý³£ÏÔʾ¿Ø¼þ£¬£¬ËµÊÇÎÞ·¨ÕÒµ½¸ÃÒ³Ãæ¡£¡£¡£¡£¡£
н¨Á˼¸´ÎÒ²ÊDz»ÐУ¬ÒÔΪÊÇVS³ ......
ÔÚ¿ª·¢ÐèÒªÓû§×¢²áºó²ÅÄÜʹÓÃÌṩµÄ¸÷ÏÄܵÄÓ¦ÓóÌÐòʱ£¬ÔÚÐÂÓû§Ìá½»×¢²áÐÅÏ¢ºó£¬½Ï³£¼ûµÄ×ö·¨ÊÇÓɳÌÐòÉú³ÉËæ»úÃÜÂ룬Ȼºó·¢ËÍÃÜÂëµ½Óû§×¢²áʱÌîдµÄµç×ÓÐÅÏ䣬Óû§ÔÙÓÃÊÕµ½µÄÃÜÂëÀ´¼¤»îÆäÕÊ»§¡£
ʵÏÖASP.NETÉú³ÉËæ»úÃÜÂ빦ÄÜÊǺÜÈÝÒ׵ģ¬ÏÂÃæµÄ´úÂë¸ø³öÁËÍêÕûµÄʵÏÖ·½·¨£º
publicstaticstringMakePassword(stringpw ......