.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

How get the current URL

Posted By: Ramesh     Posted Date: October 05, 2009    Points:2   Category :ASP.Net
Hello Friends,

How get the current URL displayed in the browser using C# in asp.net?

I am using Server.Transfer() to pass to another URL

Regards
Ramesh

Responses
Author: Lakhan Pal Garg             
Posted Date: October 06, 2009     Points: 5   

Hi Ramesh-
Use the following line to get current page URL

Request.Url.ToString()


Thanks & Regards
Lakhan Pal Garg
http://lakhangarg.blogspot.com

Author: Santosh             
Posted Date: October 07, 2009     Points: 5   

hi
please try with this

Request.Url.AbsolutePath

or

Request.Url.PathAndQuery

Regards
Santosh

Author: Lalij Mer             
Posted Date: January 09, 2010     Points: 5   

visit this link

http://www.codeproject.com/KB/aspnet/urlrewriter.aspx

Please Check my answer if you help....
Thank You...

Lalit.


Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend