how to print or get the name of current page using ASP
| SitePoint Sponsor |
how to print or get the name of current page using ASP


PHP Code:<%
prot = "http"
https = lcase(request.ServerVariables("HTTPS"))
if https <> "off" then prot = "https"
domainname = Request.ServerVariables("SERVER_NAME")
filename = Request.ServerVariables("SCRIPT_NAME")
querystring = Request.ServerVariables("QUERY_STRING")
response.write prot & "://" & domainname & filename & "?" & querystring
%>
Originally Posted by simplecode
![]()
Bookmarks