I am making a website in visual studio 2010 (in visual basic) and I really need to know how to get the URL from a VB statement (in the aspx.vb file, on page load).
There's a few properties that can give you the information. Here's an example.
Dim url As String = HttpContext.Current.Request.Url.AbsoluteUri
Dim path As String = HttpContext.Current.Request.Url.AbsolutePath
Dim host As String = HttpContext.Current.Request.Url.Host
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With