c# - Asp.net theme not applied to derived pages -


We have an ASP.net 2.0 web application that uses topics set at the application level using web.config Has been doing. The theme is implemented properly for any web page that comes from the page The problem is that the subject does not apply to our base page, which also comes from the page.

Suppose our base page is called MyBasePage: Page.

page1.aspx from the ineretis page: Apply the theme

page2.aspx which is not applicable to the theme: MyBasePage.

What makes it even more confusing is that when we try and debug on page_load of page_load, this is actually set to our theme but is being implemented without styles.

Any suggestions on how to fix this?

Make sure you are using the base keyword, The appropriate override base class members can be called within the derived category.

  Public class MyBasePage: System.Web.UI.Page {Secure Override Zero OnInit (EventArgs E) {// call base base Ononit method base.OnInit (E); } Secure Override Zero OnLoad (EventArgs E) {// call base base of OnLoad method base. Download (e); }}  

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -