get application url

H

Holly Li

I have a web page that has a form. When the user submit
the form, I will send him an email. I need to construct a
link on this email.
For example, my form's url is
http://www.my.com/dirA/myform.aspx

Then link I need is:
http://www.my.com/dirB/other.aspx

This is the way I implement this:

string path=Request.Url.Host;
path="http://"+path+"/dirB/other.aspx";

Would you tell me if this is the preferred way? Thanks
Holly
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,158
Latest member
Vinay_Kumar Nevatia
Top