ʹµØÖ·欄URL¹Ì¶¨£¬隱²Ø參數£º
<head>
</head>
<frameset>
<frame name="" src="Login.aspx" target="Login.aspx" scrolling="auto" noresize></frame>
<noframes>
<body>
</body>
</noframes>
</frameset>
</html> ......
¡¡¡¡ASPµÄ©¶´ÒѾËãºÜÉÙµÄÁË£¬ÏëÒªÕÒµ½Êý¾Ý¿âµÄʵ¼ÊλÖÃÒ²²»¼òµ¥£¬µ«Õâ²»±íÃ÷ºÚ¿ÍÎ޿׿ÉÈ룬ҲÕýÊÇÕâ¸ö¹Ûµã£¬Ò»°ãµÄ³ÌÐòÉè¼ÆÔ±³£³£Íü¼Ç×ÐϸµÄ¼ì²éÊÇ·ñÓЩ¶´£¬ËùÒÔ²ÅÓпÉÄܵ¼ÖÂÍøÕ¾×ÊÁϱ»ÇÔÈ¡µÄʼþ·¢Éú¡£½ñÌìÎÒÔÚÕâÀïºÍ´ó¼Ò̸̸ASP³£¼ûµÄ°²È«Â©¶´£¬ÒÔÒýÆð´ó¼ÒµÄÖØÊÓ¼°²ÉÈ¡ÓÐЧµÄ·À·¶´ëÊ©¡£(×¢Ò⣬ÔÚ±¾ÎÄÖÐËù½éÉܵķ½·¨Çë´ó¼Ò²»ÒªÊÔÓã¬Çë´ó¼Ò×Ô¾õ×ñÊØÍøÂç×¼Ôò£¬Ð»Ð»!)
¡¡¡¡Microsoft µÄ Internet Information Server(IIS)ÌṩÀûÓà Active Server Pages(ASPs)¶ø¶¯Ì¬²úÉúµÄÍøÒ³·þÎñ¡£Ò»¸öASPÎļþ£¬¾ÍÊÇÒ»¸öÔÚ HTML ÍøÒ³ÖУ¬Ö±½ÓÄÚº¬³ÌÐò´úÂëµÄÎļþ¡£»ØÑ¯(request)Ò»¸ö ASP Îļþ£¬»á´Ùʹ IIS ÔËÐÐÍøÒ³ÖÐÄÚǶµÄ³ÌÐò´úÂ룬Ȼºó½«ÆäÔËÐнá¹ûÖ±½Ó»ØË͵½ä¯ÀÀÆ÷ÉÏÃæ¡£ÁíÒ»·½Ã棬¾²Ì¬µÄ HTML ÍøÒ³£¬Êǰ´ÕÕÆäÔÀ´µÄÑù×ӻش«µ½ä¯ÀÀÆ÷ÉÏÃæ£¬Ã»Óо¹ýÈκεĽâÎö´¦Àí¡£ÔÚÕâÀIIS ÊÇÀûÓõµ°¸µÄ¸½¼ÓµµÃûÀ´Çø±ðµµ°¸µÄÐÍ̬¡£Ò»¸ö¸½¼ÓµµÃûΪ .htm »ò .html µÄµµ°¸ÊÇÊôÓÚ¾²Ì¬µÄ HTML µµ°¸£¬¶ø¸½¼ÓµµÃûΪ .asp µÄµµ°¸ÔòΪһ¸öActive Server Pages µµ°¸¡£ÕýÒòΪÈç´Ë£¬ÕâÒ»¸öActive Server Pages ¾Í¸ø±ðÈËÁôÁ˺óÃÅ¡£
¡¡¡¡ÀýÈ磬ͨ¹ýÀûÓÃÕâ¸ö¼òµ¥µÄ²ÎÊý£¬¾Í»áÏÔʾËüËùÔÚµÄϵͳµÄʱ¼ä¡£ÈÕÆÚÊÇ×Ô¶¯´ ......
¡¡1.¼Ç¼¼¯¹Ø±Õ֮ǰÔٴδò¿ª:
¡¡¡¡------------------------------------
¡¡¡¡sql="select * from test"
¡¡¡¡rs.open sql,conn,1,1
¡¡¡¡if not rs.eof then
¡¡¡¡dim myName
¡¡¡¡myName=rs("name")
¡¡¡¡end if
¡¡¡¡sql="select * from myBook"
¡¡¡¡rs.open sql,conn,1,1
¡¡¡¡-------------------------------------
¡¡¡¡½â¾ö:ÔÚµÚ¶þ´Îrs.open֮ǰÏÈ¹Ø±Õ rs.close
¡¡¡¡»ò
¡¡¡¡set rs1=server.createobject
¡¡¡¡rs1.open sql,conn,1,1
¡¡¡¡2,ÓÃSQL¹Ø¼ü×Ö×ö±íÃû»ò×Ö¶ÎÃû
¡¡¡¡-------------------------------------
¡¡¡¡sql="select * from user"
¡¡¡¡rs.open sql,conn,1,1
¡¡¡¡-------------------------------------
¡¡¡¡userΪsql¹Ø¼ü×Ö
¡¡¡¡½â¾ö:¸ÄΪ
¡¡¡¡sql="select * from [user]"
¡¡¡¡3,ÓÃËø¶¨·½Ê½È¥½øÐÐupdate
¡¡¡¡-------------------------------------
¡¡¡¡sql="select * from [user]"
¡¡¡¡rs.open sql,conn,1,1
¡¡¡¡rs.addnew
¡¡¡¡»ò
¡¡¡¡rs("userName")="aa"
¡¡¡¡rs.update
¡¡¡¡-------------------------------------
¡¡¡¡µ±Ç°¼Ç¼¼¯µÄ´ò¿ª·½Ê½ÎªÖ»¶Á
¡¡¡¡½â¾ö:
¡¡¡¡¸ÄΪ
¡¡¡¡rs.open sql,conn,1,3
¡¡¡¡4,ÔÚ²éѯÓï¾äÖвÉÓõĶ ......
<%
DirName="html\" '¾²Ì¬Îļþ±£´æµÄĿ¼£¬½áβӦ´ø"\"
foxrax=Request("foxrax")
if foxrax="" then
FileName=GetStr()&".html"
FileName=replace(FileName,"/","")'Ìæ»»×Ö·û
FileName=replace(FileName,"?","")
FileName=replace(FileName,"\","")
FileName=DirName&FileName
if tesfold(DirName)=false then
createfold(Server.MapPath(".")&"\"&DirName)
end if
if ReportFileStatus(Server.MapPath(".")&"\"&FileName)=true then'Îļþ´æÔÚ
List=ReadFile(FileName)
else'Îļþ²»´æÔڵϰ
List=getHTTPPage(GetUrl())
WriteFile(FileName)
end if
'Lists=split(List,"!@#$%")
'Response.write Lists(0)
'Response.end
end if
'========================º¯ÊýÇø============================
'»ñÈ¡µ±Ç°Ò³Ãæurl
Function GetStr()
On Error Resume Next
Dim strTemps
strTemps = strTemps & Request.ServerVariabl ......
<%@ Language="VBScript" %>
<%' Option Explicit %>
<%
'²»Ê¹ÓÃÊä³ö»º³åÇø£¬Ö±½Ó½«ÔËÐнá¹ûÏÔʾÔÚ¿Í»§¶Ë
Response.Buffer = False
'ÉùÃ÷´ý¼ì²âÊý×é
Dim ObjTotest(26,4)
ObjTotest(0,0) = "MSWC.AdRotator"
ObjTotest(1,0) = "MSWC.BrowserType"
ObjTotest(2,0) = "MSWC.NextLink"
ObjTotest(3,0) = "MSWC.Tools"
ObjTotest(4,0) = "MSWC.Status"
ObjTotest(5,0) = "MSWC.Counters"
ObjTotest(6,0) = "IISSample.ContentRotator"
ObjTotest(7,0) = "IISSample.PageCounter"
ObjTotest(8,0) = "MSWC.PermissionChecker"
ObjTotest(9,0) = "Scripting.FileSystemObject"
ObjTotest(9,1) = "(FSO Îı¾Îļþ¶Áд)"
ObjTotest(10,0) = "adodb.connection"
ObjTotest(10,1) = "(ADO Êý¾Ý¶ÔÏó)"
ObjTotest(11,0) = "SoftArtisans.FileUp"
ObjTotest(11,1) = "(SA-FileUp ÎļþÉÏ´«)"
ObjTotest(12,0) = "SoftArtisans.FileManager"
ObjTotest(12,1) = &q ......
'creat by qqlxinye@tom.com
'time 2008-09-19
'qq:273453129
'web www.qqlxinye.cn
dim outSmtp,outUser,outPsd,recUser,recSubmit,bodyContent,AddAttachment,ifsend
function init_mail(str1,str2,str3,str4,str5,str6,str7)
outSmtp=str1
outUser=str2
outPsd=str3
recUser=str4
recSubmit=str5
bodyContent=str6
AddAttachment=str7
if isnull(outSmtp)or isnull(outUser)or isnull(outPsd) or isnull(recUser) or isnull(recSubmit) or isnull(bodyContent) then
ifsend=false
end if
end function
function send()
if not ifsend then
Const cdoSendUsingMethod="http://schemas.microsoft.com/cdo/configuration/sendusing"
Const cdoSendUsingPort=2
Const cdoSMTPServer="http://schemas.microsoft.com/cdo/configuration/smtpserver"
Const cdoSMTPServerPort="http://schemas.microsoft.com/cdo/configuration/smtpserverport"
Const cdoSMTPConnectionTimeout="http://schemas.microsoft.com ......