asp»ñÈ¡Ò»¸öÎļþ¼Ð¼°Æä×ÓÎļþ¼ÐϵÄËùÓÐͼƬµØÖ·
ÔÎÄÁ´½Ó:http://www.iwapr.cn/article/daima/30.html
ASP/Visual Basic´úÂë
<%
dim picurl,all_picurl
'½ÔÊÇÈ«¾Ö±äÁ¿:·Ö±ð¶¨ÒåͼƬµÄÁ´½ÓµØÖ·;ËùÓÐÖ¸¶¨Îļþ¼Ð(°üÀ¨Ö¸¶¨Îļþ¼ÐµÄ×ÓÎļþ¼ÐÏÂͼƬurlµØÖ·)
picurl="" 'ÉèÖÃͼƬÁ´½ÓµØַĬÈÏֵΪ¿Õ,ΪÏÂÃæµÄcheckfolders()º¯ÊýÖ´ÐÐpicurl=picurl&"..."×ö×¼±¸.
Function checkRegExp(strPattern,str) 'ÕýÔòÆ¥ÅäËã·¨,strPattern´ú±íÕýÔò±í´ïʽ,str´ú±íÐèÒª²éѯƥÅäµÄ×Ö·û´®
Dim Exp
if str="" or isnull(str) then '¼ì²âÄãÒª²éѯµÄ×Ö·û´®ÊÇ·ñΪ¿Õ,Èç¹ûΪ¿Õ¾Í·µ»Øfalse
checkRegExp=false
end if
Set objExp=New regExp
objExp.pattern=strPattern 'Ö¸¶¨Æ¥ÅäÄ£°å
objExp.ignoreCase=false 'ÊÇ·ñºöÂÔ´óСд,ÕâÀï²»ºöÂÔ,ÄãÒ²¿ÉÒÔÉèÖúöÂÔ
objExp.Global=True 'Ö¸¶¨ÊÇ·ñÈ«¾ÖÆ¥Åä,ÕâÀïÉèÖÃΪȫ¾ÖÆ¥Åä
checkRegExp=objExp.Test(str) '·µ»Ø²éѯ½á¹û,Ò²¿ÉÒÔÕâÑùд return objExp.Test(str)
End function
Ïà¹ØÎĵµ£º
ASP±àÂë¹æ·¶
µÚÒ»Õ ASP±àÂë¹æ·¶Í¨Êö
¡¡¡¡¡¡¡¡ASP±àÂë·ÖΪÁ½´ó²¿·Ö£¬Ò»²¿·ÖΪ¾²Ì¬Îļþ±àÂ룬һ²¿·ÖΪ°üº¬·þÎñÆ÷¶Ë½Å±¾µÄ¶¯Ì¬Îļþ±àÂë¡£
¡¡¡¡¡¡¡¡¾²Ì¬Îļþ±àÂë·Öscript±àÂëºÍHTML±àÂëÁ½²¿·Ö¡£
¡¡¡¡¡¡¡¡·þÎñÆ÷¶Ë±àÂëÔò·ÖΪ·þÎñÆ÷½Å±¾¡¢¿Í»§¶Ë½Å±¾¡¢HTML½Å±¾Èý²¿·Ö¡£
¡¡¡¡¡¡¡¡±àÂë¹æ·¶²ÉÓÃÈçÏÂÔ¼¶¨£º
¡¡¡¡¡¡¡¡ Ë ......
Ò»¡¢ÕâÑùÅäÖõĺô¦£¿
²»Öª´ó¼ÒÓÐûÓÐÌý¹ýÅÔ×¢£¿ÎÒ¼òµ¥µÄ½âÊÍһϰɣºÓиöÈËÏëºÚµôAÕ¾µã£¬µ«ÕÒÀ´ÕÒÈ¥¶¼Ã»·¢ÏÖ¿ÉÀûÓõÄ©¶´£¬ÎÞÒâÖÐËû·¢ÏÖÓëAͬ·þÎñÆ÷ÉÏ»¹ÓиöBÕ¾µã£¬²¢ÇÒÔÚBÕ¾µãÉÏÕÒµ½ÁË¿ÉÀûÓõÄ©¶´£¬ÓÚÊÇËû½«Ä¾Âí´ÓBÕ¾ÖÐÉÏ´«ÖÁ·þÎñÆ÷£¬Èç¹û·þÎñÆ÷ȨÏÞÅäÖò»µ±£¬ÄÇôÏÖÔÚËû¾Í¿ÉÒÔºÚµô·þÎñÆ÷ÉϵÄËùÓÐÕ¾µãÁË£¡Èç¹ûÎÒÃÇΪà ......
·¢Ò»¸ö±ê×¼µÄÊý¾Ý¿âÁ¬½Ó´úÂ롣ϣÍû¶Ô´ó¼ÒÓаïÖú¡£
<%
option explicit
dim startime,endtime,conn,connstr,db
startime=timer()
'¸ü¸ÄÊý¾Ý¿âÃû×Ö
db="data/dvBBS5.mdb"
Set conn = Server.CreateObject("ADODB.Connection")
connstr="Provider=Microsoft.Jet.OLEDB.4.0;Data&n ......
<%
Set rs=Server.CreateObject("ADODB.RecordSet")
sql="select * from 0791idc_News where BigClassName='¼Ò×°¿ÎÌÃ' order by ID desc"
rs.Open sql,Conn,1,1
if rs.eof and rs.bof then
response.Write("ÔÝʱûÓмǼ")
else
%>
......
Õ⼸ÌìºÃ¶àÈËÎÊÎÒÈçºÎÔÚasp³ÌÐòÖпØÖÆÉãÏñÍ·È¥×¥ÅÄÕÕƬ£¬asp¼¼Êõ»¹ÊÇ99ÄêµÄʱºò¿´¹ýÒ»µãµã£¬Ôç¾Í×ÅÃ×·¹³ÔÁË£¬²»¹ý¼ÈÈ»ÓÐÈËÎÊ£¬ÄǾÍÊÇ¿´µÃÆðÔÛ£¬»¨ÁËÒ»¸öÍíÉϵÄʱ¼ä°Ñasp³ÌÐòµ÷ÓÃÉãÏñÍ·ÅÄÕÕµÄÎÊÌâ¸ã¶¨ÁË£¬ÏּǼÈçÏ£¬ÈÃÓÐÀàËÆÐèÇóµÄͬѧ¿ÉÒÔÉÙ×ßЩÍä·¡£
Óõ½µÄ¼¼Êõ£º
1.asp³ÌÐòÖÐ×÷base64±àÂëºÍ½âÂ룬ʹÓõÄÊÇmsxml×é¼þ£ ......