How to Get Current File Name - ASP .Net

If you need to know the current file name user is on you can use this code

This example code is in C#
Code:
string absPath =  System.Web.HttpContext.Current.Request.Url.AbsolutePath;
            System.IO.FileInfo finfo = new System.IO.FileInfo(absPath);
            string fileName = finfo.Name;