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