ASP取得当前文件名:
<% Dim fn fn = Request.ServerVariables("SCRIPT_NAME") fn = Mid(fn,InStrRev(fn,"/")+1) Response.Write "当前文件名是:" & fn %>
ASP取得当前url:
<% fn = Request.ServerVariables("SCRIPT_NAME") Response.Write "当前URL是:" & fn %>