I’ve been writing one off methods that apparently are handled quite well for a few things in the type System.Web.VirtualPathUtility.

For example, if you just want the page name or the extension, you have this utility to quickly get that from the current request path.

http://msdn.microsoft.com/en-us/library/system.web.virtualpathutility.aspx