Get PageName.aspx from Page object

asp.net

Solution

public string GetCurrentPageName() 
{ 
    string sPath = Request.Url.AbsolutePath;
    System.IO.FileInfo oInfo = new System.IO.FileInfo(sPath); 
    string sRet = oInfo.Name; 
    return sRet; 
} 

(Adapted from http://www.aspcode.net/Get-current-page-name.aspx)

Problem

I want to get the pagename.aspx from the current page object. I don't want to do it through HttpContext.Current.Request because if I'm already on the page and doing something why not just grab it from page...I don't need to worry about any context here. I guess page already has the name and I need to just append .aspx but is there a way to get the extension with it automatically?

Original source