Force refresh web page
<%
'Mandatory refresh of random verification code
'Let the random verification code be automatically refreshed every time you press the back button of IE to return to the login page.
Response.expires=-1
Response.AddHeaderpragma,no-cache
Response.AddHeadercache-control,no-store
%>
Determine whether the file address is valid
<%
'Original author: Xiaoyi QQ:52093 Time: 2005.6.30
Response.Write()
On Error Resume Next
Dim thisurl,thistext
thisurl=Request(thisurl) 'Define file address (non-Html format document)!
if thisurl=then
Response.Write(Please enter the file address first!)
Response.End
End if
Function objxmlhttp(xmlurl)
On Error Resume Next
Set objxml = CreateObject(Microsoft.XMLHTTP)
objxml.Open get,xmlurl,false
objxml.setrequestheader content-type,application/x-www-form-urlencoded
objxml.send
objxmlhttp = objxml.responsebody
if Err then
Err.Clear
Response.Write (Failed to establish connection, the file does not exist or there is a problem with the network!; Error reason: &Err.Description&!)
Response.End
End if
End Function
Function bytes2BSTR(vIn)
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
thisurl2=Split(thisurl,,)
For Each ii In thisurl2
thistext=bytes2BSTR(objxmlhttp(ii))
if InStr(thistext,)<>0 then
Response.Write(& ii & ×
)
Else
Response.Write(& ii & √
)
End if
Next
if Err then
Err.Clear
Response.Write(Unexpected!; Error reason: &Err.Description&!)
Response.End
End if
%>