Click here to Skip to main content
15,888,984 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
hi,

i'm using asp.net 2.0,how can i get current url path in c# coding, since i'm using rewritable concept so i entered www.abc.com/pagename.aspx ,it rewrite following url www.abc.com/praba

now i need current url path ,but current url displayed www.abc.com/pagename.aspx.
how can i get www.abc.com/path url in c#
Posted

1 solution

You can get path details by using below class (Uri)
HttpContext.Current.Request.Url
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900