string pageName = this.Page.GetType().Name.Replace("_", ".");Of course, there's also
Request.ServerVariables["SCRIPT_NAME"]and
HttpContext.Current.Request.Pathand
System.IO.Path.GetFileNameWithoutExtension(Request.FilePath)
A collection of notes, code snippets, instructions, et cetera for myself.
string pageName = this.Page.GetType().Name.Replace("_", ".");Of course, there's also
Request.ServerVariables["SCRIPT_NAME"]and
HttpContext.Current.Request.Pathand
System.IO.Path.GetFileNameWithoutExtension(Request.FilePath)
All text © Mattio Valentino.
All code is free content. Do what you will with it.
No comments:
Post a Comment