Master Pages. Is this impossible in Asp.Net 2.0? I don't know what else to try!

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top