ASPÄÚÖöÔÏó
Ò»¡¢Request ¶ÔÏó
¿ÉÒÔʹÓà Request ¶ÔÏó·ÃÎÊÈκλùÓÚ HTTP ÇëÇ󴫵ݵÄËùÓÐÐÅÏ¢£¬°üÀ¨´Ó HTML ±í¸ñÓà POST ·½·¨»ò GET ·½·¨´«µÝµÄ²ÎÊý¡¢cookie ºÍÓû§ÈÏÖ¤¡£
Request[.¼¯ºÏ|ÊôÐÔ|·½·¨](±äÁ¿)
1¡¢Form
Form ¼¯ºÏͨ¹ýʹÓà POST ·½·¨µÄ±í¸ñ¼ìË÷ÓÊË͵½ HTTP ÇëÇóÕýÎÄÖеıí¸ñÔªËصÄÖµ¡£
Request.Form(element)[(index)|.Count]
element Ö¸¶¨¼¯ºÏÒª¼ìË÷µÄ±í¸ñÔªËصÄÃû³Æ¡£
index ¿ÉÑ¡²ÎÊý£¬Ê¹ÓøòÎÊý¿ÉÒÔ·ÃÎÊij²ÎÊýÖжà¸öÖµÖеÄÒ»¸ö¡£Ëü¿ÉÒÔÊÇ 1 µ½ Request.For(parameter).Count Ö®¼äµÄÈÎÒâÕûÊý¡£
Count ¼¯ºÏÖÐÔªËصĸöÊý
Form ¼¯ºÏ°´ÇëÇóÕýÎÄÖвÎÊýµÄÃû³ÆÀ´Ë÷Òý¡£Request.Form(element) µÄÖµÊÇÇëÇóÕýÎÄÖÐËùÓÐ element ÖµµÄÊý×顣ͨ¹ýµ÷Óà Request.Form(element).Count À´È·¶¨²ÎÊýÖÐÖµµÄ¸öÊý¡£Èç¹û²ÎÊýδ¹ØÁª¶à¸öÖµ£¬Ôò¼ÆÊýΪ 1¡£Èç¹ûÕÒ²»µ½²ÎÊý£¬¼ÆÊýΪ 0¡£ÒªÒýÓÃÓжà¸öÖµµÄ±í¸ñÔªËØÖеĵ¥¸öÖµ£¬±ØÐëÖ¸¶¨ index Öµ¡£index ²ÎÊý¿ÉÒÔÊÇ´Ó 1 µ½ Request.Form(element).Count ÖеÄÈÎÒâÊý×Ö¡£Èç¹ûÒýÓöà¸ö±í¸ñ²ÎÊýÖеÄÒ»¸ö£¬¶øδָ¶¨ index Öµ£¬·µ»ØµÄÊý¾Ý½«ÊÇÒÔ¶ººÅ·Ö¸ôµÄ×Ö·û´®¡£
2¡¢QueryString
QueryString¼¯ºÏ¼ìË÷HTTP²éѯ×Ö·û´®ÖбäÁ¿µÄÖµ ,HTTP ²éѯ×Ö·û´®ÓÉÎʺŠ(?) ºóµÄÖµÖ¸¶¨¡£
Request.QueryString(variable)[(index)|.Count]
QueryString ¼¯ºÏ¿ÉÒÔÈÃÄúÒÔÃû³Æ¼ìË÷ QUERY_STRING ±äÁ¿¡£Request.QueryString( ²ÎÊý ) µÄÖµÊdzöÏÖÔÚ QUERY_STRING ÖÐËùÓвÎÊýµÄÖµµÄÊý×顣ͨ¹ýµ÷ÓÃRequest.QueryString(parameter).Count ¿ÉÒÔÈ·¶¨²ÎÊýÓжàÉÙ¸öÖµ¡£
3¡¢Cookies
Cookie ÆäʵÊÇÒ»¸ö±êÇ©£¬µ±Äã·ÃÎÊÒ»¸öÐèҪΨһ±êʶÄãµÄÕ¾Ö·µÄ WEB Õ¾µãʱ£¬Ëü»áÔÚÄãµÄÓ²ÅÌÉÏÁôÏÂÒ»¸ö±ê¼Ç£¬ÏÂÒ»´ÎÄã·ÃÎÊͬһ¸öÕ¾µãʱ£¬Õ¾µãµÄÒ³Ãæ»á²éÕÒÕâ¸ö±ê¼Ç¡£Ã¿¸ö WEB Õ¾µã¶¼ÓÐ×Ô¼ºµÄ±ê¼Ç£¬±ê¼ÇµÄÄÚÈÝ¿ÉÒÔËæʱ¶ÁÈ¡£¬µ«Ö»ÄÜÓɸÃÕ¾µãµÄÒ³ÃæÍê³É¡£Ã¿¸öÕ¾µãµÄ Cookie ÓëÆäËûËùÓÐÕ¾µãµÄ Cookie ´æÔÚͬһÎļþ¼ÐÖеIJ»Í¬ÎļþÄÚ£¨Äã¿ÉÒÔÔÚ Windows µÄĿ¼Ï嵀 Cookie Îļþ¼ÐÖÐÕÒµ½ËüÃÇ£©¡£Ò»¸ö Cookie ¾ÍÊÇÒ»¸öΨһ±êʶ¿Í»§µÄ±ê¼Ç£¬Cookie ¿ÉÒÔ°üº¬ÔÚÒ»¸ö¶Ô»°ÆÚ»ò¼¸¸ö¶Ô»°ÆÚÖ®¼äij¸ö WEB Õ¾µãµÄËùÓÐÒ³Ãæ¹²ÏíµÄÐÅÏ¢£¬Ê¹Óà Cookie »¹¿ÉÒÔÔÚÒ³ÃæÖ®¼ä½»»»ÐÅÏ¢¡£Request ÌṩµÄ Cookies ¼¯ºÏÔÊÐíÓû§¼ìË÷ÔÚ HTTP ÇëÇóÖз¢Ë굀 cookie µÄÖµ¡£
Request.Cookies(cookie)[(key)|.attribute]
cookie Ö¸¶¨Òª¼ìË÷ÆäÖµµÄ cookie¡£
key ¿ÉÑ¡²ÎÊý£¬ÓÃÓÚ´Ó cookie ×ÖµäÖмìË÷×ӹؼ
Ïà¹ØÎĵµ£º
Ëæ ×ÅÍøÕ¾·ÃÎÊÁ¿µÄ¼Ó´ó£¬Ã¿´Î´ÓÊý¾Ý¿â¶ÁÈ¡¶¼ÊÇÒÔЧÂÊ×÷Ϊ´ú¼ÛµÄ£¬ºÜ¶àÓÃACCESS×÷Êý¾Ý¿âµÄ¸ü»áÉîÓÐÌå»á£¬¾²Ì¬Ò³¼ÓÔÚËÑË÷ʱ£¬Ò²»á±»ÓÅÏÈ¿¼ÂÇ¡£»¥ÁªÍøÉÏÁ÷ ÐеÄ×ö·¨Êǽ«Êý¾ÝÔ´´úÂëдÈëÊý¾Ý¿âÔÙ´ÓÊý¾Ý¿â¶ÁÈ¡Éú³É¾²Ì¬Ã棬ÕâÑùÎÞÐμä¾Í¼Ó´óÁËÊý¾Ý¿â¡£½«ÏÖÓеÄASPÒ³Ö±½ÓÉú³É¾²Ì¬Ò³£¬½«»á½ÚÊ¡ºÜ¶à¡£
ÏÂÃæµÄÀý×ÓÊǽ«¡¢index.asp?i ......
ASPÓë´æ´¢¹ý³Ì
ASPÓë´æ´¢¹ý³Ì(Stored Procedures)µÄÎÄÕ²»ÉÙ£¬µ«ÊÇÎÒ»³ÒÉ×÷ÕßÃÇÊÇ·ñÕæÕýʵ¼ù¹ý¡£ÎÒÔÚ³õѧʱ²éÔĹý´óÁ¿Ïà¹Ø×ÊÁÏ£¬·¢ÏÖÆäÖÐÌṩµÄºÜ¶à·½·¨Êµ¼Ê²Ù×÷ÆðÀ´²¢²»ÊÇÄÇô»ØÊ¡£¶ÔÓÚ¼òµ¥µÄÓ¦Óã¬ÕâЩ×ÊÁÏÒ²ÐíÊÇÓаïÖúµÄ£¬µ«½öÏÞÓÚ´Ë£¬ÒòΪËüÃǸù±¾¾ÍÊÇǧƪһÂÉ£¬»¥Ïà³Ï®£¬ÉÔ΢¸´ÔÓµãµÄÓ¦Ó㬾ÍÈ«¶¼ÓïÑɲ»ÏêÁË ......
´Ë·½·¨¿ÉÒÔ²»ÐèҪרÃÅÖÆ×÷Ä£°åÎļþ£¬Ö»ÐèÕý³£ÔËÐеĶ¯Ì¬Ò³Ãæ¼´¿É£¬¾ßÌå·½·¨ÈçÏ£¬×îÖÕʹÓüû×îºóÒ»¸öº¯Êý£º
Function getHTTPPage(url) ‘Ê×Ò³Éú³É¿ªÊ¼
dim Http
set Http=server.createobject("MSXML2.XMLHTTP")
Http.open "GET",url,false
Http.send()
if Http ......
asp,asp.net,php,jspϵÄ301תÏò´úÂë
ʹÓÃ.htaccessÎļþÀ´½øÐÐ301Öض¨Ïò¡£
Èç¹û¿Õ¼ä²»Ö§³Ö.htaccessÎļþ£¬ÄÇôÎÒÃÇ»¹¿ÉÒÔͨ¹ýphp/asp´úÂëÀ´½øÐÐ301Öض¨Ïò¡£
ΪÁ˽«ËÑË÷ÒýÇæµÄ¼Ç¼¸üе½ÏÖÔÚµÄÓòÃûÉÏÃæ,×öÁ˼¸¸ö301Öض¨ÏòµÄ¶«¶«,¸ø´ó¼Ò·ÖÏíÒ»ÏÂ.
asp 301תÏò´úÂë
ÔÚ index.asp »ò default.asp µÄ×²¿¼ÓÈëÒÔ ......