一套很早的多用户电子商务程序

源代码在线查看: function.asp

软件大小: 4059 K
上传用户: As
关键词: 多用 电子商务 程序
下载地址: 免注册下载 普通下载 VIP

相关代码

								function getHTTPPage(url) 
					on error resume next 
					dim http 
					set http=Server.createobject("Microsoft.XMLHTTP")
					Http.open "GET",url,false 
					Http.send()
					if Http.readystate4 then
						exit function 
					end if
					getHTTPPage=bytes2BSTR(Http.responseBody)
					set http=nothing
					if err.number0 then err.Clear  
				end function
				Function bytes2BSTR(vIn) 
					dim strReturn 
					dim i,ThisCharCode,NextCharCode 
					strReturn = "" 
					For i = 1 To LenB(vIn) 
						ThisCharCode = AscB(MidB(vIn,i,1)) 
						If ThisCharCode < &H80 Then 
							strReturn = strReturn & Chr(ThisCharCode) 
						Else 
							NextCharCode = AscB(MidB(vIn,i+1,1)) 
							strReturn = strReturn & Chr(CLng(ThisCharCode) * &H100 + CInt(NextCharCode)) 
							i = i + 1 
						End If 
					Next 
					bytes2BSTR = strReturn 
				End Function
				
				function Fomathtm(content)
				if typename(content)="Null" then
				Fomathtm=""
				else
				str=replace(content," ","  ")
				Fomathtm=replace(str,chr(13)+chr(10),"")
				end if
				end function
				%>
				
							

相关资源