×öASPС͵³ÌÐò
(Ò»)ÈçºÎ½ØÈ¡Ö¸¶¨ÇøÓòµÄHTML´úÂë?
¡¡¡¡(¶Ô·½ÍøÕ¾µÄHTML´úÂëÔÚÄĶù¿´£¿ÔΣºIEä¯ÀÀÆ÷>>²é¿´>>Ô´Îļþ¡£²»Òª¸æËßÎÒÄã²»ÖªµÀIEÊÇʲô£¡)£¬ÀýÈçÎÒÖ»Ïë»ñÈ¡ÒÔÏÂHTML´úÂëÖÐ"<td>"ºÍ"</td>"Ö®¼äµÄµÄÎÄ×Ö²¿·Ö£º
<html>
<title>ÍøÕ¾°®ºÃÕß__http://www.wwwfan.cn</title>
<body>
<table>
<tr><td></td></tr>
<tr><td id="Content">ÍøÕ¾°®ºÃÕß__http://www.wwwfan.cnÊǸöÍøÒ³ÖÆ×÷×ÊÔ´¶à¶àµÄÕ¾µã……</td></tr>
</table>
</body>
</html>
<%
……
Dim StrBK,start,over,RsBK
StrBK=getHTTPPage(ÍøÒ³µÄµØÖ·)
start=Instr(StrBK,"<td id=""Content"">") '´Ë´¦µÄ×÷ÓÃÊÇ»ñÈ¡×Ö·û´®¿ªÊ¼µØ·½µÄ¶¨Î»¡£Instrº¯ÊýÔÚVBScript½Ì³ÌÀï˵¹ýÁËŶ~
'ÕâÀïÒªÓÐÈËÎÊÁË:ÔÀ´µÄ´úÂëÊÇ<td id="Content">,ÔõôÄãÕâÀïµ÷ÓõÄÊÇ<td id=""Content"">°¡?´ð°¸:aspÖУ¨×¼È·µÄ˵ÊÇVBscriptÖÐÊÇÓÃÁ½¸öË«ÒýºÅÀ´±íʾһ¸öË«ÒýºÅµÄ£¬ÒòΪ˫ÒýºÅ¶ÔÓÚ³ÌÐòÀ´ËµÊǸöÃô¸Ð×Ö·û¡£
over=Instr(StrBK,"…</td></tr>")'´Ë´¦µÄ×÷ÓÃÊÇ»ñÈ¡×Ö·û´®½áÊøµØ·½µÄ¶¨Î»¡£
'ÕâÀïÓÖÒªÓÐÈËÎÊÁË :³ÌÐòµ÷ÓÃHTML´úÂë¸ÉÂðÇ°Ãæ¶à³öÀ´3¸öµãµã"…"°¡£¿´ð£ºÌáʾ£ºÉÏÃæÒ»ÐÐÒ²ÓÐÒ»¸ö</td></tr>£¬Èç¹ûÕâÀïÓÃ</td></tr>À´¶¨Î»µÄ»°£¬³ÌÐò»á´íÎóµØ°ÑÉÏÃæÒ»ÐеÄ</td></tr>µ±³ÉÓû»ñÈ¡×Ö·û´®µÄ½áÊø²¿·ÖÁË¡£
RsBK=mid(StrBK,start,over-start) '´Ë´¦µÄ×÷ÓÃÊÇÈ¡³öStrBKÖеÚstart¸ö×Ö·ûµ½µÚover¸ö×Ö·ûÖ®¼äµÄ×Ö·û´®¡£midº¯ÊýÔÚVBScript½Ì³ÌÀïÒ²½²¹ýÁË£»over-startÊÇΪÁ˼ÆËã³ö¿ªÊ¼Î»ÖúͽáÊøλÖÃÖ®¼äµÄ¾àÀ룬Ҳ¾ÍÊÇ×Ö·ûÊý¡£
response.write(RsBK) '×îºóÊä³ö³ÌÐò»ñÈ¡µÄÄÚÈÝ
%>
¡¡¡¡ ²»Òª¸ßÐ˵ÄÌ«Ô磬µ±ÄãÔËÐеÄʱºò£¬Äã»á·¢ÏÖÒ³ÃæµÄhtml´úÂëÓдíÎó£¬ÎªÊ²Ã´ÄØ£¿ÒòΪÄã»ñÈ¡µÄhtml´úÂëÊÇ£º
<td id="Content">ÍøÕ¾°®ºÃÕß__http://www.wwwfan.cnÊǸö×ÊÔ´¶à¶àµÄÕ¾µã…
¡¡¡¡ ¿´µ½ÁË°É£¿ÓвÐȱµÄHTML´úÂë°¡£¡Ôõô°ìÄØ£¿start=Instr(StrBK,"<td id=""Content"">"Õâ¸öÓï¾ä»ñÈ¡µÄÊÇ"<td id="Content">"ÔÚStrBKÖеÄλÖÃÊý,ÏÖÔÚÎÒÃÇ¿ÉÒÔÔÚ³ÌÐòÓï¾äµÄºóÃæ¼ÓÉÏ17,ÄÇô³ÌÐò¾Í»á½«Î»ÖÃÖ¸Ïò<td id="Content">ºóÃæµÄÄǸö×Ö·û.
ºÃµÄ,³ÌÐò½«¸
Ïà¹ØÎĵµ£º
ѧASPµ½ÏÖÔÚÒÑÓÐÐí¶àÄ꣬ºÃ¶àÈ˶¼ËµËûÕâ¸ö²»ºÃÄǸö²»ºÃ£¬¿ÉÎÒ¾õµÃͦºÃ£¬ÎÒȴ˵²»³öʲôºÃµÄÀíÓÉÈÿͻ§Ñ¡ÔñÓÃASP¿ª·¢£¬ÖÕÓÚ¿´µ½ÁËÕâ¸öÎÄÕ£¬ÐÄÖдóϲ£¬×ª¸ø´ó¼Ò·ÖÏí~~
ASPÊÇÒ»ÖÖÀàËÆHTML(Hypertext Markup Language³¬Îı¾±êʶÓïÑÔ)¡¢ScriptÓëCGI(Common GAteway Interface ͨÓÃÍø¹Ø½Ó¿Ú)µÄ½áºÏÌ壬µ«ÊÇÆäÔËÐÐЧÂÊÈ´±È ......
½ñÌìÖØÐÂÕûÀíµçÄÔ£¬ÕÒµ½Ò»¸öÎļþ£¬¿´ÁËÏÂÈÕÆÚ£¨2006.11.5£© £¬Å²»Ð¡ÐÄÔÙ¶ªÁË£¬´æµ½ÍøÉÏÀ´É¹É¹¡£
°²×°ÓëÅäÖÃ
1.5.1°²×°IIS
¿ØÖÆÃæ°å_ Ìí¼Óɾ³ý³ÌÐò_Ìí¼Óɾ³ýWindows×é¼þ_
"internetÐÅÏ¢·þÎñ(IIS)"¶Ô»°¿ò_ÏêϸÐÅÏ¢——"Word Wide Web·þÎñÆ÷" _ µ¥»÷Á½¸ö“È·¶¨”—&mda ......
asp nowº¯Êý,ASPʱ¼äº¯ÊýÏê½â ,aspʱ¼äº¯Êý´óÈ«,asp ÐÇÆÚº¯Êý
now() »ñÈ¡µ±Ç°ÏµÍ³ÈÕÆÚºÍʱ¼ä,ASPÊä³ö¿ÉÒÔÕâÑùд£º<%=now()%>
Year(now()) »ñÈ¡Äê·Ý£¬ ASPÊä³ö£º<%=Year(now())%>
Month(now()) »ñÈ¡µ±Ç°Ô·ݣ¬ASPÊä³ö£º<%=Month(now())%>
day(now()) ......
´´½¨Ö¸¶¨µÄÎļþÃû²¢·µ»ØÒ»¸ö TextStream ¶ÔÏ󣬿ÉÒÔʹÓÃÕâ¸ö¶ÔÏó¶ÔÎļþ½øÐжÁд¡£
object.CreateTextFile(filename[, overwrite[, unicode]])
²ÎÊý
object
±ØÑ¡ÏӦΪ FileSystemObject »ò Folder ¶ÔÏóµÄÃû³Æ¡£
filename
±ØÑ¡Ïî¡£Ö¸Ã÷ËùÒª´´½¨ÎļþµÄ×Ö·û´®±í´ïʽ¡£
overwrite
¿ÉÑ¡Ïî¡£Boolean Öµ£¬Ö¸Ã ......