Is there a way I can know what is the Url I am currently browsing?

If I would use that command or script it on this page it would return me:

http://www.daniweb.com/forums

And if I would be testing on localhost or on some acceptance server, it would return me

http://localhost:1996/forums


Thanks for your help!

Is there a way I can know what is the Url I am currently browsing?

If I would use that command or script it on this page it would return me:

http://www.daniweb.com/forums

And if I would be testing on localhost or on some acceptance server, it would return me

http://localhost:1996/forums

Thanks for your help!

There ya go!

Request.Url.ToString();

Awesome:)

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.