asp.net±àÒë´íÎó-±»±àÒëµÄÎļþλÖôíÎó
ÓÉÓÚÒ»´ÎÔÚdebugģʽÏÂÐÞ¸ÄÁËasp.netÖÐÒ³ÃæµÄ´úÂ룬(ÎÒÊÇÓÃIIS½øÐе÷ÊÔµÄ)²¢½øÐÐÁËÏîÄ¿ÎļþµÄÌæ»»£¬Ò²²»ÖªµÀÊDz»ÊÇÕâ¸öÔÒò¡£µ¼ÖÂÎÒÔÚÏÂÒ»´Î±àÒëµÄʱºò£¬Ìáʾ³ö´í£º/xxx/xxx.aspx , /xxx/xxx.cs ÎļþÕÒ²»µ½¡£
ÎÒ¾ÍÊǸоõÆæ¹ÖÁË£¬ÎÒÃ÷Ã÷ÔÚÕâÁ½¸öÎļþÏÂÃæÃ»ÓÐÕâ¸öÎļþ¡£ÄǸöµ÷ÊÔǰ±àÒëµÄÎļþ¸ù±¾¾Í²»ÔÚÄǸöËü˵µÄÄǸöÎļþÏÂÃæ¡£¿ÉÊǺöÂÔÕâ¸ö±àÒë´íÎó£¬Ö´ÐÐÉÏÒ»´Î³É¹¦µÄ±àÒ룬ÏîĿվµã¾ÓÈ»»¹¿ÉÒÔ¼ÌÐøÔËÐС£Ì«¹îÒìÁË¡£
ÎÒÏë¿ÉÄÜÊÇvs.netÔÚʲôµØ·½´æ´¢ÁËÒ»¸öÏîÄ¿Öи÷¸öÎļþµÄ·¾¶£¬Ãû³ÆµÈÆäËûÐÅÏ¢¡£Èç¹ûÄÜÕÒµ½ÊÖ¹¤¸ÄµôÒ²¾Í¿ÉÒÔÁË£¬¿ÉÊǾÍÊÇÕÒ²»µ½¡£ÎÒÖªµÀµÄ¿ÉÄܵÄλÖÃÒ²¾ÍÊÇ£¬ÏîÄ¿Îļþ¼ÐÖУ¬My Document ÖУ¬Application Data\Microsoft\VisualStudio\9.0ÒÔ¼°×¢²á±íÖС£µ«ÊÇ×ÐϸÏëÏëÕâЩλÖö¼²»Ïñ´æ·ÅÕâЩ¶«Î÷µÄµØ·½¡£
¶ÔÁËÎÒ±àÒëµ÷ÊÔµÄÕâ¸öÏîÄ¿ÎļþûÓÐ.slnºÍ.csproj¡£»òÕß˵ÄǸöÏîÄ¿ÎļþÖÐËù·ÅµÄÕâЩ¸öÎļþ¸ù±¾¾ÍÊÇ¿ͷ²»¶ÔÂí×죬ÎÒ´ÓÐÂÉú³É¹ýÏîÄ¿¡£
Óöµ½ÕâÑùµÄÎÊÌ⣬ÎÒÒÔΪ£¬°ÑÏà¹ØµÄÏîÄ¿ÎļþɾµôÖØÐÂÉú³ÉÓ¦¸Ã¾ÍºÃÁË£¬¿ÉÊÇÒ»µãÓö¼Ã»ÓУ¬ÉõÖÁÄÃÔ´Îļþ¸²¸Çµô¶¼Ã»ÓÐÓá£ÕæÊDz»ÖªµÀ΢Èí°ÑÕâЩ¸öÔÚ±àÒëʱ¶ÔÏîÄ¿Îļþ¼°Æä½á¹¹µÄÃèÊöÐÅÏ¢µ½µ×ÊÇ·ÅÔÚÄÄÀïµÄ¡£
²»ÖªµÀÄÇλ¸ßÊÖÖªµÀ΢Èí×öµÄÕâЩ¸öÒþ±ÎµÄ¹´µ±£¬µ½µ×ÊÇÓÃʲô´æ·ÅÊý¾ÝµÄ£¡£¡£¡Ð¡µÜÏÈлÁË£¡£¡£¡
ÔõôûÈ˻ظ´°¡£¡£¡
ÄãÊÇÓÃvs2003Âð£¬ÖØÐÂн¨Ò»¸öÏîÄ¿£¬°ÑÎļþ¶¼¿½±´¹ýÈ¥£¬³ýÁË.sln£¬Èç¹û»¹ÕâÑù£¬ÊÇÒòΪ.csprojµÄÎÊÌâÁË£¬¹À¼ÆÊÇÒÔǰµÄ¶Ô²»ÉϺŻòÕßʲôµÄ¡£Èç¹û²»ÏÓÀÛ£¬ÖØÐÂÌí¼ÓÏàͬµÄÔªËØ£¨Ò³Ã棬Îļþ¼Ð£¬ÀàµÈ£©£¬ÔÙ¸²¸ÇËûÃÇ£¬µ«¼Çס±ð°ÑеÄ.slnºÍ.csproj¸²¸ÇÁË¡£
ÄãÊDz»ÊÇÓø´ÖÆÎļþÈ»ºóÖØÃüÃûÀ´×öһЩ²î²»¶àµÄÒ³Ãæ£¬Èç¹ûÕâÑùµÄ»°ÄãҪעÒâÄãaspxÎļþµÄµÚÒ»¾ä»°£¬¼´PageÀïµ
Ïà¹ØÎÊ´ð£º
ÔÚ¹«Ë¾¾Àí¸øÁËÎÒÕâÑùÒ»¸öÏîÄ¿£º
ÏîÄ¿ÒÔǰÒѾ¿ª·¢ÁË£¬ÓÃASP¿ª·¢µÄ£»
ÏÖÔÚ½«ÆäÖÐÒ»¸öÄ£¿éÓÃASP.NETÖØÐ¿ª·¢£»
ÊÔÎÊ£ºÔõô°ì£¿
Ô½ÏêϸԽºÃ£¬×îºÃÊǽáºÏʵ¼Ê¿ª·¢£¬O(¡É_¡É)Oлл
ÓеÀÀ ......
ÎÒÓÃC#±àasp.netÍøÒ³¡£ÔÚÒ»¸ö°´Å¥button1ÖУ¬ÓÐÒ»¶Î´úÂëÔËÐÐʱ¼ä½Ï³¤£¬ÓÚÊÇÎÒÏëÔÚ°´Å¥°´ÏÂÖ®ºó£¬ÓÃÒ»¸ölabel1À´ÏÔʾһС¶Î×Ö·û£ºlabel1.text="ÕýÔÚ²éѯÖУ¬ÇëÉÔµÈ..."£¬È»ºóÔÚbutton1´úÂëÖ´ÐеÄ×îºóÒ»Ðдú ......
·þÎñÆ÷·ÅÖÃÔÚÄÚÍø¡£ÍøÕ¾Ö»ÄÜÊÇͨ¹ýÄÚ²¿ÍøÂç·ÃÎʵġ£ÔõÑù»ñÈ¡¿Í»§¶Ë¼ÆËã»úµÄÓòºÍ¼ÆËã»úÃû£¿
RT£¬Ð»Ð»ÁË¡£
Request.UserHostName
Request.UserHostAddress
Õâ¸öÊÔ¹ýÁ˲»ÐС£
ÈçºÎÔÚ.NETÖлñÈ¡µçÄÔÃû£ ......
ÏÖÔÚ×öÒ»¸öÍøÕ¾£¬ÓÃÁËĸ°æ£¬Óû§¿Ø¼þ£¬¶¼Óõ½ÁËscriptManager£¬¿ÉÊÇÄÚÈÝÒ³»¹ÒªÓÃscriptManager£¬¿´ÁËÏà¹Ø×ÊÁÏ£¬ËµscriptManagerProxy¿ÉÒÔ×÷ΪscriptManagerµÄ´úÀíʹÓã¬ÊÔÁËÏ£¬Ã»Óгɹ¦£¬ÌØ·¢´ËÌû£¬Çë¸÷λ°ï°ïæ£¬Ï ......
ÎÒÓÃÏÂÃæµÄ·½Ê½µ¯³ö¶Ô»°¿ò
RegisterStartupScript("js", " <script>alert('¶Ô²»ÆðÄúûÓиÃȨÏÞ') </script>");
È»ºóÎÒÔÙË¢ÐÂÒ³Ãæ£¬Ò³Ãæ»áÌáʾ£º¡°²»ÖØÐ·¢ËÍÐÅÏ¢ ......