I want to write a c# method to retrieve the current page. eg Default6.aspx I know I can do the following:
string url = HttpContext.Current.Request.Url.Absolu
You could try this below.
string url = "http://localhost:1302/TESTERS/Default6.aspx"; string fileName = System.IO.Path.GetFileName(url);
Hope this helps.