tags:

views:

15

answers:

2

Help me please. How could I get the url from the address bar. Im using c# for this. for example: if I type www.google.com in my address bar, then i would get "www.google.com" caption.

+1  A: 

Request.Url.ToString()

jarrett
A: 

I'm assuming you want to handle incoming requests to your web server.

Depending on your setup, you should be able to access the url the user used to reach you with Request.Url.AbsoluteUri

here is a cheat sheet I use for myself to get an overview of the Uri object: alt text

AndreasKnudsen