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?
This sounds like a bad idea to start with. The idea of the master is that it shouldn't care what page is there as this is all common code for each page.