HttpContext.Current.Request.Url.AbsoluteUri

Discussion in 'ASP.NET / ASP.NET Core' started by bobcasey, Mar 8, 2006.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. HttpContext.Current.Request.Url.AbsoluteUri is giving me a blank string.


    It should return the URL of my web site. I use this to derive the path name for users to enter in there URL for hyperlinks so I don't need to hard code it.


    Does anyone know why this would stop working on the server at discountASP.net? It's always worked in the past.


    Thanks in advance.


    Bob
     
  2. I just put the following code into my website (on discountasp.net) and it worked properly.




    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
    Response.Write("[" & HttpContext.Current.Request.Url.AbsoluteUri & "]")
    End Sub


    Joel Thoms
    DiscountASP.NET
    http://www.DiscountASP.NET
     
  3. Wow, thanks Joel for the quick response.


    I had a coding issue. The namespace.class.property was working fine.


    I"m impressed with DiscountASP.net. Great site, blog and support for the money and even for more money.
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page