Click to See Complete Forum and Search --> : Email This Page


marslizard
12-03-2004, 12:26 PM
I want to include an email this page function for each page in an asp application. How do I get the url of the page to include in the email? I am using PersitsMailSender.

Any help you can provide will be very much appreciated.

lmf232s
12-03-2004, 06:40 PM
<%=Request.ServerVariables("URL")%>

for example if the site is
www.asp.com/test/sample/index.asp

<%=Request.ServerVariables("URL")%>
would return /test/sample/index.asp

so if you use this just put www.asp.com in from then append the URL
variable.