Sunday, January 18, 2009

How to Read the Url of a Web page dynamically in c#

You can get the the url of the currently viewing web page using


HttpContext.Current.Request.ServerVariables["URL"].ToString() ;

No comments: