asp.net 3.5 with vb
My issue seems quite simple but am having some probems.
I have a master page with a number of child pages.
When a page loads and is based on the top level master page, I want to run code in the page load event. If a page is based on any of the child masters then I do not want to run the code.
I thought a simple bit of code as below (pseudo code) in page_load woud do the trick:
if currentpage.masterpagefile = "mypage.master" then
If I could get the name of the current page master file then I would be fine but am not managing to do this.
Anyone know how this can be done