Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Member
2 Points
1 Post
Jul 08, 2010 03:53 AM|LINK
I've also tried de Page.ToString() but If MS change this it won't work anymore.
I've finally use this to get only the filename + extension of the file
string[] file = Request.CurrentExecutionFilePath.Split('/'); string fileName = file[file.Length-1];
Pretty basic, I hope this help.
Martin.
martinEspi
Member
2 Points
1 Post
Re: How to get current page file name?
Jul 08, 2010 03:53 AM|LINK
I've also tried de Page.ToString() but If MS change this it won't work anymore.
I've finally use this to get only the filename + extension of the file
string[] file = Request.CurrentExecutionFilePath.Split('/');
string fileName = file[file.Length-1];
Pretty basic, I hope this help.
Martin.