ASP.NET°²È«ÈÏÖ¤ ¶þ
——Áé»îÔËÓà Form ±íµ¥ÈÏÖ¤ÖÐµÄ deny Óë allow ¼°±£»¤ .htm µÈÎļþ
×÷Õߣºº®Óð·ã(cityhunter172)
µÚ¶þ²¿·Ö Form ÈÏÖ¤µÄʵսÔËÓÃ
»°ËµÉϻأ¬¼òµ¥µØ˵ÁËһϠForm ±íµ¥ÈÏÖ¤µÄÓ÷¨¡£»òÐí´ó¼Ò¾õµÃÌ«¼òµ¥£¬¶ÔÄÇЩ´óÄÚ¸ßÊÖÀ´ËµÓ¦¸ÃÊÇ“È÷È÷Ë®À²”“С Kiss À²£¨Ð¡Òâ˼£©”¡£½ñÌìÔÛÃÇÀ´µãµÄ»¨Ñù°É£º¹ÅÓÐÁùÉÈÃÅ£¬¾ÜÊÕÒ¶¹Â³Ç£»¶«ÃŲ»¹Î·ç£¬´µÑ©ÐÕÎ÷ÃÅ£»¶Ð´ø×÷ƾ֤£¬¾öÕ½×Ͻû³Ç¡£
Îå¡¢ Web.config µÄ×÷Ó÷¶Î§
н¨ÏîĿʱ£¬ VS.Net »áÔÚÏîÄ¿¸ùĿ¼½¨Á¢Ò»¸öÄÚÈݹ̶¨µÄ Web.config¡£³ýÁËÔÚÏîÄ¿¸ùĿ¼£¬Ä㻹¿ÉÒÔÔÚÈÎһĿ¼Ï½¨Á¢ Web.config £¬Ìõ¼þ¾ÍÊÇÓ¦ÓóÌÐò¼¶±ðµÄ½ÚµãÖ»ÄÜÔÚ¸ùĿ¼µÄ Web.config ÖгöÏÖ¡£ÖÁÓÚÄÄЩÊÇÓ¦ÓóÌÐò¼¶±ð½ÚµãÄØ£¬Õâ¸öÎÊÌâÂÆäʵÎÒÒ²²»Ì«Çå³þ£¬ºÇºÇ¡£µçÄÔ²»ÊÇÎÒ·¢Ã÷µÄ£¬Î¢Èí²»ÊÇÎÒ´´½¨µÄ£¬C# ¸ü²»ÊÇÎÒ˵ÁËËãµÄ£¬ÉñÏÉÒ²Óв»ÖªµÀµÄ£¬ËùÒÔÎÒ²»ÏþµÃÊÇÕý³£µÄ¡£»°ËäÈç´Ë£¬Ö»ÒªËü²»±¨´í£¬ÄǾÍÊǶԵġ£
¹ØÓÚ Web.config ÉèÖõÄ×÷Ó÷¶Î§£¬¼ÇסÒÔÏÂÁ½µã£º
1¡¢ Web.config µÄÉèÖý«×÷ÓÃÓÚËùÔÚĿ¼µÄËùÓÐÎļþ¼°Æä×ÓĿ¼ÏµÄËùÓ櫶«£¨¼Ì³Ð£º×ÓË游ÐÕ£©
2¡¢ ×ÓĿ¼Ï嵀 Web.config ÉèÖý«¸²¸ÇÓɸ¸Ä¿Â¼¼Ì³ÐÏÂÀ´µÄÉèÖ㨸²¸Ç£ºÏعٲ»ÈçÏֹܣ©
¸ø´ó¼ÒÌá¸öÎÊÌ⣺ÓÐûÓбȸùĿ¼Web.config µÄ×÷Ó÷¶Î§»¹´óµÄÅäÖÃÎļþÄØ£¿¿´ÍêµÚÈý²¿·Ö±ãÖª·ÖÏþ¡£
Áù¡¢ ѧ»á¾Ü¾øÓëÇÉÓÃÔÊÐí
»Øµ½ÎÒÃÇÔÚµÚÒ»»ØºÏн¨µÄ²âÊÔÏîÄ¿“FormTest” £¬ ¼ÈȻҪ½øÐÐÑéÖ¤£¬°´¹ú¼Ê¹ßÀý£¬¾ÍµÃÓÐÓû§ÃûÓëÃÜÂë¡£ÄÇ£¬ÕâЩÓû§ÊǹÜÀíÔ±×Ô¼ºÔÚÊý¾Ý¿â½¨ºÃÄØ£¬»¹ÊÇÓû§×¢²á¡¢¹ÜÀíÔ±ÉóºËºÃÄØ¡£Ö»Òª²»ÊÇÒ»°ãµÄ±¿µ°£¬¶¼ÖªµÀ Ñ¡ÔñºóÕß¡£ÄãÃÇ»¹±ð˵£¬ÎÒ¹«Ë¾»¹ÕæÓиö±ðÏîÄ¿ÊǹÜÀíÔ±Á¬µ½Êý¾Ý¿âÈ¥½¨Õʺŵģ¬ÊôÓڱȽÏÌØÊâµÄ±¿µ°£¬ÔÛÃDz»Ñ§ËûÒ²°Õ£¬»¹ÊÇÀÏÀÏʵʵÌí¼ÓÁ½¸öÒ³Ãæ°É——×¢²áÒ³ Ã棨Register.aspx£©ÓëÉóºËÒ³Ã棨Auditing.aspx£©¡£
ÎÊÌâÖÕÓÚ¾ÍÒª¸¡³öË®ÃæÀ²£¬µ±Äã×öºÃ Register.aspx ʱ£¬Ïë·ÃÎÊËüµÄʱºòͻȻ¾õµÃ²»¶Ô¾¢£¬ÔõôÓֻص½Á˵ǼҳÃ棿Äã×ÐϸÇÆÇÆÍøÖ·£¬ÊDz»ÊdzÉÁË£ºLogin.aspx?ReturnUrl=Register.aspx ¡£Ôõô°ì£¬Óû§¾ÍÊÇÒòΪûÓÐÕʺŲÅÈ¥·ÃÎÊ×¢²áÒ³ÃæµÄѽ£¿£¨Õâ¾ä´¿Êô·Ï»°£¬ÓÐÕʺÅË»¹ÅÜÈ¥×¢²á¡££©ÎÒʱ³£¶ÔÎÒµÄͬÊÂ˵£º“°ì·¨ÊÇÈËÏë³öÀ´µÎ£¡£¡”
1¡¢ н¨Ò»¸öĿ¼ Public £¬ÓÃÓÚ´æ·ÅһЩ¹«ÓõÄÎļþ£
Ïà¹ØÎĵµ£º
ASP.NETÈý²ã½á¹¹ËµÃ÷
ÍêÉƵÄÈý²ã½á¹¹µÄÒªÇóÊÇ:Ð޸ıíÏÖ²ã¶ø²»ÓÃÐÞ¸ÄÂß¼²ã,ÐÞ¸ÄÂß¼²ã¶ø²»ÓÃÐÞ¸ÄÊý¾Ý²ã¡£·ñÔòÄãµÄÓ¦ÓÃÊDz»ÊǶà²ã½á¹¹,»òÕß˵ÊDzã½á¹¹µÄ»®·ÖºÍ×éÖ¯ÉÏÊDz»ÊÇÓÐÎÊÌâ¾ÍºÜÄÑ˵.²»Í¬µÄÓ¦ÓÃÓв»Í¬µÄÀí½â£¬ÕâÖ»ÊÇÒ»¸ö¸ÅÄîµÄÎÊÌ⣮
Àí½âASP.NETÈý²ã½á¹¹——ΪʲôҪ·ÖÈý²ã£¿
ÎÒÃÇÓÃÈý²ã½á¹¹Ö÷ÒªÊÇÊ¹Ï ......
ASP.NETµÄÒ³Ãæ³õʼ»¯ÓëʼþÏê½â
Ò»¡¢³õʼ»¯
¡¡¡¡·µ±Ò³Ãæ±»Ìá½»ÇëÇóµÚÒ»¸ö·½·¨ÓÀÔ¶Êǹ¹Ô캯Êý¡£Äú¿ÉÒÔÔÚ¹¹Ô캯ÊýÀïÃæ³õʼһЩ×Ô¶¨ÒåÊôÐÔ»ò¶ÔÏ󣬲»¹ýÕâʱºòÒòΪҳÃ滹ûÓб»ÍêÈ«³õʼ»¯ËùÒÔ¶àÉÙ»áÓÐЩÏÞÖÆ¡£ÌرðµØ£¬ÄúÐèҪʹÓÃHttpContext¶ÔÏó¡£µ±Ç°¿ÉÒÔʹÓõĶÔÏó°üÀ¨QueryString, FormÒÔ¼°Cookies¼¯ºÏ£ ......
asp.net±ÏÒµÉè¼Æ¾ÍÊÇÓÃC#ÓïÑÔ¿ª·¢µÄWEBµÄ±ÏÒµÉè¼Æ£¬ÏÖÔںöà´óѧ¶¼Ñ¡ÔñÓÃasp.netÀ´×ö±ÏÒµÉè¼Æ£¬±¾Õ¾¿ªÊ¼×ö±ÏÒµÉè¼Æ¾ÍÑ¡ÔñÁËasp.net¿ª·¢±ÏÒµÉè¼Æ±ðµÄÉè¼Æ²»×ö¡£
¶¨×öasp.net±ÏÒµÂÛÎÄרÏߣº
±à³ÌÁªÃËÕ¾³¤
QQ£º153933864 êdzƣºÐÇÆÚ°Ë
ÁõÏÈÉú£ºÊÖ»ú£º13733310210
ÎÒÃǵÄasp.net±ÏÒµÉè¼Æ³ÉÆ·Ö÷Òª²¿·ÖÔÚÏÂÃæÁгö£º
±¾Õ¾ÒÔ¶ ......
ASP.NETÎļþÏÂÔغ¯ÊýʹÓÃÊÇʲôÇé¿öÄØ£¿ÔÚÄãµÄPage_LoadÖÐÌí¼ÓÕâÑùµÄ´úÂë:
Page.Response.Clear();
bool success = ResponseFile(Page.Request, Page.Response, "Ä¿µÄÎļþÃû³Æ", @"Ô´Îļþ·¾¶", 1024000);
if (!success) Response.Write("ÏÂÔØÎļþ³ö´í£¡"); Page.Response.End();
ASP.NETÎļþÏÂÔغ¯Êý´úÂëΪ:
......
×÷Õߣºº®Óð·ã(cityhunter172)
Ðò
´úÂëд N ¾ÃÁË£¬×ÜÏëдµÃ±ðµÄ¡£Õâ²»£¬ÉÏͷ˵ÔÚÕûºÏÁ½¸öÏîÄ¿£¬×ö³Éµ¥Ò»µÇ¼£¨Single Sign On£©£¬Ò²ÓÐÈ˳Æ֮Ϊ“µ¥µãµÇ¼”¡£²éÔÄÏà¹ØÎĵµºó£¬ÖÕÓÚʵÏÖÁË£¬ÏÖÔÚ°ÑËüÄóöÀ´Óë´ó¼ÒÒ»Æð·ÖÏí¡£»òÐí´ó¼Ò»áÎÊ£º“ÕâÓë±êÌâ²»·ûѽ£¿”±ð¼±£¬ÔÚϱÊ֮ǰ£¬ÎÒÄÔ×ÓÀïÏëµ½ÁËÎÒ¸ÕʹÓà ......