Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

asp¼òµ¥ÎÊÌâ

СµÜ×î½üʹÓÃÁËÒ»¸ö±ðÈËдµÄ»ñÈ¡°Ù¶ÈÏà¹ØËÑË÷´ÊµÄ´úÂ룬·¢ÏÖ´úÂë±È½Ï¾«¼ò£¬»ñÈ¡µÄÊǰٶÈËÑË÷½á¹ûÒ³ÃæµÄÏà¹ØËÑË÷½á¹û¡£ÒòΪÎұȽϲˣ¬¿´ÁË´úÂë°ëÌìûÓп´¶®ËûÊÇÔõôÑùÌáÈ¡³öÀ´µÄÕâЩ´Ê£¬ÏÂÃæ·¢´úÂëÏ£Íû¸ßÊÖ°ïÎÒ½âÊÍһϡ£
HTML code:
<%
Dim splitStr,splitStrs
splitStrs = "<A href=../word.asp?key=" '¿ªÊ¼
splitStrss = " target=_blank>" 'Öмä
splitStr = "</A><br>" '½áÊø
Function GetPage(url,charset)
Set xhr = Server.CreateObject("Microsoft.XMLHTTP")
xhr.open "Get",url,False
xhr.send
GetPage = BytesToBstr(xhr.responseBody,charset)
End Function
Function BytesToBstr(body,charSet)
dim objstream
set objstream = Server.CreateObject("Adodb." & "Stream")
objstream.Type = 1
objstream.Mode =3
objstream.Open
objstream.Write body
objstream.Position = 0
objstream.Type = 2
objstream.Charset = charSet
BytesToBstr = objstream.ReadText
objstream.Close
set objstream = nothing
End Function
Function getBaidu(ByVal key)
url="http://www.baidu.com/baidu?word=" & Server.urlEncode(key)
start = "<td style=""font-size:14px;font-weight:bold;height:40px;width:70px;"">Ïà¹ØËÑË÷</td>"
result = GetPage(url,"gb2312")
getBaidu = ""
If InSt


Ïà¹ØÎÊ´ð£º

asp³õѧÎÊÌâ¡£responseÕÒ²»µ½

<%@language="vbscript"%>
<%option explicit%>
<html>
<head> <title>xxx </title> </head>
<script language=vbs>
'×¢Òâ±äÁ¿ ......

ÓÃASPÔõôдÒÔÏ´úÂë

µ±½áÊøÊ±¼ä´óÓÚ¿ªÊ¼Ê±¼äÔòÏÔʾδÍê³É
µ±½áÊøÊ±¼äСÓÚ¿ªÊ¼Ê±¼äÔòÏÔʾδ´ïµ½ÈÎÎñ
ûÓÐʱ¼äÔòÏÔʾÕýÔÚ½øÐÐÖÐ
asp´úÂëÓ¦¸ÃÔõôд


Èç:¿ªÊ¼Ê±¼ä      ½áÊøÊ±¼ä      & ......

asp´¥·¢Ê¼þÎÊÌâ

ÔÚÒ»¸ö·¢±íÎÄÕµÄÒ³Ãæ£¬Èç¹ûÖÐ;¹Ø±ÕÒ³Ãæ£¬ÕâÌáʾÊÇ·ñ·ÅÆú±à¼­£¬
Èç¹ûµã»÷·ÅÆú£¬ÔòתÏòÌîд·ÅÆúÔ­ÒòµÄ½çÃæ£¬
Èç¹ûµã²»·ÅÆú£¬ÕâÍ£ÁôÔÚÔ­Ò³Ãæ£¬
Èç¹ûÊǵã»÷Ò³ÃæµÄ³¬¼¶Á´½Ó£¬Ôò´¥·¢Ê¼þʧЧ

ÈçºÎ±àд´ú ......

ÈçºÎÓÃHttpClientÉèÖûòÕßÐÞ¸ÄASPÖÐsessionµÄÊôÐÔ

ÏȰÑÎÒµÄÇé¿ö˵Ã÷һϡ£

ÏÖÔÚÓÐÁ½¸öaspÒ³Ãæ£¬ÊǸºÔð×¢²áÓû§µÄ£¬¼ÇΪregister.aspºÍresult.asp¡£

ÆäÖÐregister.asp°üº¬Á˸÷ÖÖ×¢²áÐÅÏ¢£¬²¢ÓÐÒ»¸öËæ»úÉú³ÉµÄÑéÖ¤Â루Õâ¸öÊÇÖØµã£©£¬µ±Ìá½»×¢²áÒ³ÃæÊ±£¬» ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ