How do you get the URL of a Web Page in VB.NET ? Thanks in advance.

HttpContext.Current.Request.Url

Are you using the browser control? URL is one of it's properties.

HttpContext.Current.Request.Url

Shall i import a specific library ?

Imports Google.RTFM

Granted, I did make an assumption that you were writing an ASP.NET page. But it's trivial to search MSDN for HttpContext and see that you import System.Web.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.