0

Can I define MasterPageFile for MasterPage from code?

I know how to do that for Page (OnPreInit event), but how to do that for MasterPage? It does not contain OnPreInit event.

4
  • 2
    Have you looked at this: stackoverflow.com/a/582036/96505 Apr 5, 2013 at 13:46
  • Cool, it is good example, will check now...
    – inser
    Apr 5, 2013 at 13:48
  • @inser, I'm afraid I don't understand your question. Dynamically binding to a master page from a content page makes sense, but doing so from the master page does not, since the master page is the .master file itself. Apr 5, 2013 at 13:50
  • @FrédéricHamidi I mean nested MasterPages
    – inser
    Apr 5, 2013 at 13:57

0