asp²ÎÊý´«µÝÎÊÌâ
request.queryString("act")="del"
id=request.queryString("id")
ÉϱßÊÇÒ»²¿·Ö²ÎÊý´«µÝµÄ´úÂë µØÖ·À¸µÄ²ÎÊýÊÇact
ÔõôÀí½âact
actÔÚÕâÀïÊDZäÁ¿»¹ÊÇÆäËû£¿
Ó¦¸ÃÊÇÅжÏÓï¾ä£¬²»ÊǸ³ÖµÓï¾ä, ¸ù¾ÝactµÄ²»Í¬Ö´Ðв»Í¬µÄ²Ù×÷¡£
if request.queryString("act")="del" then
....
ÏÖÔÚÊÇÃÔºýactµ½µ×ÊǸöʲô ÊDzÎÊý »¹ÊÇÊôÐÔ ÊÇ×Ô´øµÄ»¹ÊÇ×Ô¶¨ÒåµÄ
actÊÇurl´«µÝµÄ²ÎÊýѽ£¬ http://xxxx/xxx.asp?act=del&id=xx
ACTÊÇÓ¦¸ÃËãÊÇ×Ô¶¨ÒåµÄ¡£
ͬÒâ¶þÂ¥£¬request.queryString("act")="del" ¿Ï¶¨²»ÊÇÒ»¸ö¶ÀÁ¢µÄÓï¾ä£¬Ó¦¸ÃÊÇÒ»¸öÌõ¼þÓï¾ä£¬ÕâÒ»¾äÖеÄactÊÇÖ¸µØÖ·À¸Öеĺó׺²ÎÊý£¬id=request.queryString("id") Õâ¾äÖУ¬µÚÒ»¸öidÊÇÒ»¸ö±äÁ¿£¬ºóÃæµÄidÒ»ÑùÊÇÖ¸µØÖ·À¸Öеĺó׺²ÎÊý£¬Õû¾äµÄÒâ˼¾ÍÊÇ»ñÈ¡µØÖ·À¸²ÎÊýidµÄÖµ£¬²¢°ÑËü¸³Öµ¸ø±äÁ¿id
requestÖ»ÓÐgetûÓÐset £¨¿ÉÒÔÀí½âΪֻ¶Á£©
ÏÂÃæÊÇrequestµÄ´úÂëÔÐΣº
C# code:
public sealed class HttpRequest
{
......
public NameValueCollection QueryString { get; }
......
}
public class NameValueCollection : NameObject
Ïà¹ØÎÊ´ð£º
HTML code:
dim jf
set conn=server.createobject("adodb.connection")
connstr="Driver={Sql Server};Server="&Sqlip&";Database="&Sqldb&";Uid="& ......
ÎÒÔ±¾ÊÇѧjspµÄ¿ÉÕÒÁËÒ»¸öASPµÄ¹«Ë¾£¡ÎÒÒªÖØÐÂѧϰ£¡ ѧϰASP£¡ Ï£Íû´ó¼ÒÍÆ¼öÒ»±¾ºÃÊ鏸ÎÒлл
<ASP3.0¸ß¼¶±à³Ì> ÍøÉÏÓеç×Ó°æµÄ
·¢ÏÖÍøÉÏaspÐÅϢʱ×î¶àµÄ ±ÈÆäËûµÄ¶¼¶àºÃ¶à
yun
ÕÒ±¾ÓÐÓ¦ÓÃÊÂÀýµÄA ......
½¨ÁËÒ»¸öÕ¾µã£¬ÀïÃæÓÐ login.aspx. events.aspx µÈµÈ ÆäËûµÄÒ³Ãæ¡£
µ«ÊÇÎÒµ÷ÊÔ ÆäËûÒ³ÃæµÄʱºò£¬±Ä³öÀ´µÄ×ÜÊÇ login.aspx Ò³Ãæ¡£
¸Õѧasp ÇëÖ¸½Ì
ÄãÉèÖÃÆðʼҳÁ˰ɡ£¡£
¶÷ÔõôȡÏûÄØ£¿
Òªµ ......
ÓÐÄÄλ¸ßÊÖÓùýASP FCKÔÚÏß±à¼Æ÷ѽ£¬ËüÄǸöͼƬÉÏ´«¹¦ÄÜÔõôÅäÖÃѽ
ÄܸøÎÒ·¢¸öÄÜÓÃFCKÔÚÏß±à¼Âð£¿Ò»¶¨ÄÜÉÏ´«Í¼Æ¬¹¦ÄܵÄѽ£¬¼±Ñ½
Ö±½Óµ½¹Ù·½ÍøÕ¾È¥Ï¸ö¾Í¿ÉÒÔÁË£¬¹ØÓÚÉèÖÃô£¬Ö±½ÓGOOGLEÒ»ÏÂÄãµÄ°æ±¾ºÅ¾Í¿ÉÒÔÕÒµ ......