I\'m writing code on the master page, and I need to know which child (content) page is being displayed. How can I do this programmatically?
string s = Page.ToString().Replace("ASP.directory_name_","").Replace("_aspx",".aspx").Replace("_","-"); if (s == "default.aspx") { /* do something */ }