Get current URL in vb.net
57,192
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
Author by
user3483317
Updated on July 09, 2022Comments
-
user3483317 almost 2 years
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).