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

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Èý²ã¼Ü¹¹µÄ˵Ã÷¼°Èý²ã¼Ü¹¹µÄÌصã

ASP.NETÈý²ã½á¹¹ËµÃ÷
ÍêÉƵÄÈý²ã½á¹¹µÄÒªÇóÊÇ:Ð޸ıíÏÖ²ã¶ø²»ÓÃÐÞ¸ÄÂß¼­²ã,ÐÞ¸ÄÂß¼­²ã¶ø²»ÓÃÐÞ¸ÄÊý¾Ý²ã¡£·ñÔòÄãµÄÓ¦ÓÃÊDz»ÊǶà²ã½á¹¹,»òÕß˵ÊDzã½á¹¹µÄ»®·ÖºÍ×éÖ¯ÉÏÊDz»ÊÇÓÐÎÊÌâ¾ÍºÜÄÑ˵.²»Í¬µÄÓ¦ÓÃÓв»Í¬µÄÀí½â£¬ÕâÖ»ÊÇÒ»¸ö¸ÅÄîµÄÎÊÌ⣮
Àí½âASP.NETÈý²ã½á¹¹——ΪʲôҪ·ÖÈý²ã£¿
ÎÒÃÇÓÃÈý²ã½á¹¹Ö÷ÒªÊÇÊ¹Ï ......

ASP.NET³£ÓôúÂë

1. ´ò¿ªÐµĴ°¿Ú²¢´«ËͲÎÊý£º
 
´«ËͲÎÊý£º
response.write("<script>window.open('*.aspx?id="+this.DropDownList1.SelectIndex+"&id1="+...+"')</script>")
½ÓÊÕ²ÎÊý£º
string a = Request.QueryString("id");
string b = Request.QueryString("id1");
2.Ϊ°´Å¥Ìí¼Ó¶Ô»°¿ò
Button1.Attribut ......

ÔÚASP.NETÖÐʵÏÖÈçºÎÏÂÔØtxt¼°xmlÎļþµÄ·½·¨

string destFileName = "ok.txt";
            destFileName = Server.MapPath(".") + "\\"+destFileName;
            destFileName = Server.UrlDecode(destFileName);
    &nbs ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ