百分悬赏:asp转换为asp.net代码(本页面为ajax调用的,用于编码转换)

[复制链接]
查看11 | 回复1 | 2010-12-1 19:14:21 | 显示全部楼层 |阅读模式
4 then

exit function

end if

getHTTPPage=BytesToBstr(Http.responseBody,"GB2312")

set http=nothing

if err.number0 then err.Clear
end function
Function BytesToBstr(body,Cset)

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 = Cset

objstream.Charset = "GB2312"

BytesToBstr = objstream.ReadText

objstream.Close

set objstream = nothing
End Function
Dim Url,Html,tstitle,totitle
tstitle=""
totitle=""
Url="http://localhost:89/location.dll/guess?x="&ditulon&"&y="&ditulat&""
Html = getHTTPPage(Url)
Title=GetBody(Html,tstitle,totitle,False,False)
mapctext=Split(title,",")(0)
mapetext=Split(title,",")(1)
mapctext=Split(title," ")(0)
%>


悬赏30分,有满意答案,立即赠送剩余的70分!
在线等…………

回复

使用道具 举报

千问 | 2010-12-1 19:14:21 | 显示全部楼层
jhgjhgjhghj
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行