S
shapper
Hello,
I am, for almost 2 days, trying to create a nested master page.
The objective is: create a NESTED master page at RUNTIME.
I looked everywhere and I couldn't find a solution. Basically what I
need is:
Parent.master
| ---Child.master
|---Page.aspx
I know that in Page.aspx I can define, at runtime, the page master file
in the Page.Preinit event:
Me.MasterPageFile = "~/Child.master"
However, in Child.master I am not able to define a Page.PreInit event.
So how to I say to Child.master to use Parent.master as master page.
Remember that I am trying to do this at Runtime and not in aspx code.
Could somebody help me out?
I don't know what else to try.
Thanks,
Miguel
I am, for almost 2 days, trying to create a nested master page.
The objective is: create a NESTED master page at RUNTIME.
I looked everywhere and I couldn't find a solution. Basically what I
need is:
Parent.master
| ---Child.master
|---Page.aspx
I know that in Page.aspx I can define, at runtime, the page master file
in the Page.Preinit event:
Me.MasterPageFile = "~/Child.master"
However, in Child.master I am not able to define a Page.PreInit event.
So how to I say to Child.master to use Parent.master as master page.
Remember that I am trying to do this at Runtime and not in aspx code.
Could somebody help me out?
I don't know what else to try.
Thanks,
Miguel