asp.net - Accessing a Master Page using custom base class causes Page not to render -


I have a very awkward problem in using ASP.NET/C# 4.0 that I am unable to answer. I have a custom base master page for my child's master page, and my pages have a custom base page class. My problem is that if I use a master member from any of my pages, the content of the page itself Not provided, only master page.

Then, recapitulation in a different way: "Master page" system vib. UI master process processes "master page" using "nested master". System Web.UI.MasterPage

Using "nested master" "webform" is the successor to the webform custom package, which handles the system. Web.UI.Page

When the custom arrives at the master Masters will not render this webform content, only "nested master" and "master page" content. I have tried it only by reading the members, writing a member and reading and writing both, and not even reaching a member, just call the debug. Farewell (this. Mister)

If it does any help, then I am using a page decorator on "webform" which needs to be updated to control the "master page"

Unfortunately, my Google search queries show results with a way to use the public members of the master page, but nothing that I can find, will help explain that, as a result of reaching the master page, the result is Page key The content is not displayed

Can anyone see something like this and give some suggestion? Google is not helping a lot, is searching for a few hours now.

OK, it leaves when the page decorator is used on top of the class Specifies the properties of the page class before I used ILSP, what happens when you reach the master property of the page, if the master page (internally disabled) and all the preinit methods are called, first it is accessed, then This will create a new master page and uses that content annoying way anyway, my solution properties to get the pages of parents and set them to set the values Was to bring, but my base page and the basis was overloaded onload event in master classes, and set the properties on the parents.

Instead of doing so:

  Namespace Website (Public Intangible MyPageBase: Page {Public Full Property Name} {Return (MyMaster) this.Master) .RatePageId;} Set {(MyMaster) this.Master) .RatePageId;}}}}   

I did this:

  Namesplace MyVisite (Public abstract category) MyPageBase: Page {public int} property name {get; set;} safe override zero onInit (EventArgs e) {base.OnInit (E); if (property name! = Zero) {(MyMaster) this .Master). Do Prti name = PropertyName.Value;}}}} click on    

Comments