This topic is locked

Link to the main (index.htm) page of the application

2/1/2007 1:13:20 PM
ASPRunnerPro General questions
orit author

I would like to add link to the main page of the application (index.htm), in the body of an e-mail message sent with table event.

I saw in the forum how to add a link to the page that the e-mail message is triggered from:

"http://" & request.ServerVariables("SERVER_NAME") & request.ServerVariables("SCRIPT_NAME")


Is it possible to add a link to the index.htm of the application using similar variables (without adding the link hardcoded)?
Thanks a lot

Sergey Kornilov admin 2/1/2007

Try something like this:

str = "http://"; & request.ServerVariables("SERVER_NAME") & request.ServerVariables("SCRIPT_NAME")

ind = InstrRev(str, "/")

url = Left(str, ind)

orit author 2/4/2007

Perfect,
Thanks a lot