I need to know that,how we can get the current url path (e.g. http://www.mywebsite.com/) in asp.net.
I found that java have the request.getContextPath() to get that.
Even in dot net we have this,
System.Web.HttpContext.Current.Request.UrlReferrer.Host
System.Web.HttpContext.Current.Request.ApplicationPath
Is there any other ways that will gives the same result.
I am also interested to know how I will use the code in aspx page.
cheers.
I got this 🙂
cheers 🙂 🙂