| Suppose the current page is simply "http://www.mysite,com/view_user.asp"
This is all you need to get you the current page URL
<%
Thispage = Request.ServerVariables("script_name")
%>
Now, if your page has Querystring info and variables you want as well.
Like so "http://www.mysite,com/view_user.asp?ID=1&Name=Fred"
you would use code like this.
<%
Thispage = Request.ServerVariables("script_name") & "?" & Request.Querystring
%> |