ASP.NET°²È«ÈÏÖ¤ Ò»
×÷Õߣºº®Óð·ã(cityhunter172)
Ðò
´úÂëд N ¾ÃÁË£¬×ÜÏëдµÃ±ðµÄ¡£Õâ²»£¬ÉÏͷ˵ÔÚÕûºÏÁ½¸öÏîÄ¿£¬×ö³Éµ¥Ò»µÇ¼£¨Single Sign On£©£¬Ò²ÓÐÈ˳Æ֮Ϊ“µ¥µãµÇ¼”¡£²éÔÄÏà¹ØÎĵµºó£¬ÖÕÓÚʵÏÖÁË£¬ÏÖÔÚ°ÑËüÄóöÀ´Óë´ó¼ÒÒ»Æð·ÖÏí¡£»òÐí´ó¼Ò»áÎÊ£º“ÕâÓë±êÌâ²»·ûѽ£¿”±ð¼±£¬ÔÚϱÊ֮ǰ£¬ÎÒÄÔ×ÓÀïÏëµ½ÁËÎÒ¸ÕʹÓà Form ÈÏ֤ʱÓöµ½µÄһЩÎÊÌ⣬ÒÔ¼°Ê¹Óùý³ÌÓõ½µÄһЩ¼¼ÇÉ£¨ÊµÄËͶ»úÈ¡ÇÉÊÇÒ² ^_^ £©¡£Å¼´ò³õÖÐÄÇʱ£¬ÓïÎÄˮƽ¾Í²»ÔõôµÎ£¬¿¼ÊÔ³£³£×÷ÎÄд²»³öÀ´£¬ËùÒÔд×÷ˮƽÓÐÏÞ£¬»¹Çë´ó¼Òº£Á¿¡£¶ÔÁË£¬±¾È˲»½öд×÷ˮƽÓÐÏÞ£¬±à³ÌÄÜÁ¦Ò²²»ÊǺܺ㬴ËÎĹ©´ó¼Òѧϰ½»Á÷Ö®Ó㬻¶Ó¹ã´óÀÍ¿àȺÖÚÁà׿¦µ°¡¢Åõ×ÅÏÊ»¨Ç°À´ÆÀÂÛ¡£×ªÔØÇë×¢Ã÷Ô´´×÷ÕßÄ˺®Óð·ãÊÇÒ²£¬²»Éõ¸Ð¼¤£¡
·Ï»°Ò²ËµµÄ²î²»¶àÁË£¬ÑÔ¹éÕý´«£¬ ASP.NET µÄ°²È«ÈÏÖ¤£¬¹²ÓГWindows”“Form”“Passport”“None”ËÄÖÖÑé֤ģʽ¡£“Windows”Óë“None”ûÓÐÆðµ½±£»¤µÄ×÷Ó㬲»ÍƼöʹÓ㻓Passport”ÎÒÓÖûÓùý£¬°¦……ËùÒÔÎÒÖ»ºÃ½²½²“Form”ÈÏÖ¤ÁË¡£ÎÒ´òËã·ÖÈý²¿·Ö£º
µÚÒ»²¿·Ö —— ÔõÑùʵÏÖfrom ÈÏÖ¤£»
µÚ¶þ²¿·Ö —— Form ÈÏÖ¤µÄʵսÔËÓã»
µÚÈý²¿·Ö —— ʵÏÖµ¥µãµÇ¼£¨Single Sign On£©
µÚÒ»²¿·Ö ÈçºÎÔËÓà Form ±íµ¥ÈÏÖ¤
Ò»¡¢ н¨Ò»¸ö²âÊÔÏîÄ¿
ΪÁ˸üºÃ˵Ã÷£¬ÓбØҪн¨Ò»¸ö²âÊÔÏîÄ¿£¨ÔÝÇÒΪ“FormTest”°É£©£¬°üº¬ÈýÕÅÒ³Ãæ×ãÒÓ£¨Default.aspx¡¢Login.aspx¡¢UserInfo.aspx£©¡£É¶£¿ÓÐÈ˲»»áн¨ÏîÄ¿£¬²»»áÐÂÔöÒ³Ã棿ÄãÎÊÎÒÕ¦°ì£¿ÎÒ¿´Õâô°ìºÃÁË£ºÍϳöÈ¥£¬´ò»ØԽ壬´ÓÓ׶ù԰ѧÆð……
¶þ¡¢ ÐÞ¸Ä Web.config
1¡¢ Ë«»÷ÏîÄ¿ÖеÄWeb.config£¨²»»áµÄ¡¢ÕÒ²»µ½µÄ´ò PP£©
2¡¢ ÕÒµ½ÏÂÁÐÎÄ×Ö <authentication mode="Windows" /> °ÑËü¸Ä³É£º
<authentication mode="Forms">
<forms loginUrl="Login.aspx" name=".ASPXAUTH"></forms>
</authentication>
3¡¢ ÕÒµ½<authorization> <allow users="*" /></authorization>»»³É
<authorization><deny users="?"></deny></authorization>
ÕâÀïûʲôºÃ˵µÄ£¬Ö»Òª¿½±´¹ýÈ¥¾ÍÐС£Ëä˵Èç´Ë£¬µ«»¹ÊÇÓ
Ïà¹ØÎĵµ£º
ASP.NETÈý²ã½á¹¹ËµÃ÷
ÍêÉƵÄÈý²ã½á¹¹µÄÒªÇóÊÇ:Ð޸ıíÏÖ²ã¶ø²»ÓÃÐÞ¸ÄÂß¼²ã,ÐÞ¸ÄÂß¼²ã¶ø²»ÓÃÐÞ¸ÄÊý¾Ý²ã¡£·ñÔòÄãµÄÓ¦ÓÃÊDz»ÊǶà²ã½á¹¹,»òÕß˵ÊDzã½á¹¹µÄ»®·ÖºÍ×éÖ¯ÉÏÊDz»ÊÇÓÐÎÊÌâ¾ÍºÜÄÑ˵.²»Í¬µÄÓ¦ÓÃÓв»Í¬µÄÀí½â£¬ÕâÖ»ÊÇÒ»¸ö¸ÅÄîµÄÎÊÌ⣮
Àí½âASP.NETÈý²ã½á¹¹——ΪʲôҪ·ÖÈý²ã£¿
ÎÒÃÇÓÃÈý²ã½á¹¹Ö÷ÒªÊÇÊ¹Ï ......
¿´ÁËÕÐƸÐÅÏ¢£¬Ã»·¢ÏÖ¼¸¸öÊÇÕÐ.netµÄ£¬¶¼ÊÇJava »òÕßC¡¢C++ ¡£·¢ÏÖ²ÎÓëµÄÏîÄ¿¾ÑéÔÚУ԰ÕÐƸÒѾûÓÐÓÅÊÆÁË£¬
ËƺõÍâÃæ¸üϲ»¶Java£¬µ«ÊǸöÈ˸оõ.NET»áÓкÜÇ¿´óµÄÇ÷ÊÆ£¬ËùÒÔ»¹ÊÇѧϰѧϰ£¬µ«ÊÇÒ²²»·ÅÆúC++µÄ¿ñÈÈ£¬ºÍwindows±à³ÌµÄѧϰ¡£
ºÃµÄµ¼Ê¦ÊÜÒæ·Ëdz£¡£¡ ......
ת£ºhttp://www.cnblogs.com/kumaws/articles/web_architecture.html
Ïà¶ÔÓÚ²»Í¬µÄÐèÇó£¬ÍøÕ¾µÄ´óС£¬¿ª·¢¸´ÔӶȣ¬³É±¾£¬ÍøÕ¾µÄ¼Ü¹¹Ò²·ÖÐí¶àÖÖ¡£
´ó¶àÊýСÐÍÍøÕ¾£¬ÐèÇó½ÏΪ¼òµ¥£¬°²È«ÐÔÒªÇ󲻸ߣ¬¿ª·¢Ê±¼ä¶Ì¡£Ò»°ãÕâÑùµÄÍøÕ¾£¬»¹»áÓÐÒ»¸öÓëÊý¾Ý¿âÖ®¼äµÄ½»»¥¡£ÓÃAsp.NetÖÐÌṩµÄ¿Ø¼þ£¬ÍêÈ«¿ÉÒÔÂú×㿪·¢µÄÒªÇó¡£Ò»° ......
string destFileName = "ok.txt";
destFileName = Server.MapPath(".") + "\\"+destFileName;
destFileName = Server.UrlDecode(destFileName);
&nbs ......