Question : Request.PhysicalApplicationPath returns I.P. not URL

I'm using this code to get the url in my application but it's returning the I.P address of the server rather than the www.webspace.com and it breaks my application. Does anyone know how to fix it so that it pulls the URL and not the IP?

Dim sXmlFilename As String = Request.PhysicalApplicationPath & "forms/" & Request.Params("xml")

Answer : Request.PhysicalApplicationPath returns I.P. not URL

Random Solutions  
 
programming4us programming4us