強制重新整理和判斷檔案位址

2022-09-29 16:45:23 字數 1950 閱讀 4599

複製** **如下:

強制重新整理網頁

'強制性重新整理隨機驗證碼

'讓隨機驗證碼每次按ie的後退按鈕時,返回登入頁面的隨即碼都自動重新整理,

response.expires=-1 

response.addheader"pragma","no-cache" 

response.addheader"cache-control","no-store" 

%>

判斷檔案位址是否有效

複製** **如下:

'原創作者:小藝 qq:52093 時間:2005.6.30 

etwlhtdtj;response.write("")

on error resume next

dim thisurl,thistext

thisurl=request("thisurl") '定義檔案位址(非html格式文件)!

if 程式設計客棧thisurl="" then

response.write("請先輸入檔案位址!")

on error resume&nb程式設計客棧sp;next

response.write("建立連線失敗,檔案不存在或網路有問題!;錯誤原因:"&err.description&"!

response.write("碰到意外!;錯誤原因:"&err.description&"!")

response.end

end if

%>

本文位址:

ASP實用技巧 強制重新整理和判斷檔案位址

asp實用技巧 強制重新整理和判斷檔案位址 強制重新整理網頁 強制性重新整理隨機驗證碼 讓隨機驗證碼每次按ie的後退按鈕時,返回登入頁面的隨即碼都自動重新整理,response.expires 1 response.addheader pragma no cache response.addhead...

重新整理和頁面跳轉

所有頭資訊都是隨著請求和回應自動傳送到伺服器端 客戶端 在 response 中乙個比較常用 的頭資訊就是重新整理的指令,可以完成定時重新整理的功能。resp.setheader refresh 2 對於重新整理的頭資訊,除了定時的功能外,還具備了定時跳轉的功能,可以讓乙個頁面定時跳轉到一 個指定的...

強制ie重新整理

一 網上搜到的方法 在head裡加 不過發現還是沒用 二 然後發現可能是因為用了ajax,發現在url上加個隨機數就好了 function addrand toload 提交的時候 toload addrand toload xx load toload,function response,stat...