Omgili - forum search, search forums  
  

Discussions about master page

Displaying 1 - 10 out of 110,617 discussions.  
RSS Feed Options
Time Frame: (Any time)   Minimum number of replies: (2)   Minimum number of discussing users: (0)
  |  

Page: 1   2   3   4   5   6   7   8   9   10  
Keep this page open to be updated with the newest discussions automatically.
Is there anyway to set a Master Page's Master Page programmaticly? Would I need to do this on each page? I don't have access to the pre_init event from Master. Hrm...
Started by on , 3 posts by 3 people.  
Void Page_PreInit(Object sender, EventArgs e) { this.MasterPageFile = "~/NewMaster.master"; } Working with ASP.NET Master Pages....
The pages inherit from a base Page and place put the master page reference there.
I have a nested master page that has its own master page. The parent master page has a property defined in its code behind. Public ReadOnly Property SelectedPage() As String Get Return _selectedPage End Get End Property How can I reference the parent ...
Started by on , 4 posts by 4 people.  
Protected void Page_Load(object sender, EventArgs e) { MyDemoMaster m = Master as MyDemoMaster; m.MyProperty = "My button text"; } See: How to access controls inside a nested master page? The right way of accessing Master....
I've got a site with two master pages: one for one-column layout and one for two-column layout. These are nested within a master page that provides a common header and footer. I have functionality that I want each of the content pages to have; should ...
Started by on , 4 posts by 4 people.  
If you want to be doing work such as creating connection at the start... .
Master pages should only be used for layouts in my opinion.
Base page is a prime target for this.
Object that I want to be instantiated as each page loads.
Ask your Facebook Friends
This is weird. I added a brand new Web Application project to my solution in Visual Studio 2008. Created a master page. Made zero modifications. Created a new webform. Set its masterpage to the MP i just created. Still, no modifications. No markup. No...
Started by on , 6 posts by 6 people.  
Your aspx page should look like this: <%@ Page sure to....
When you created the WebForm, did you select the Master page it is attached to in the "Add New Item a master page, you just start with the content tag.
Okay, so we all know about changing a master page dynamically in a page's OnPreInit event. But what about a nested master page? Can I change a master's master? There is no OnPreInit event exposed in the MasterPage class. Any ideas?
Started by on , 4 posts by 4 people.  
page class, we can perform the relevant checks to see which root master page should be used the navigation and page furniture, along with heavy display CSS, while the authoring master has to be top-level controls in....
Trying to set the value of a literal user control on my child master page via the code behind of the same master page. Here is example of the code I am using: Global.master <form id="form1" runat="server"> <div> <asp:ContentPlaceHolder ...
Started by on , 4 posts by 4 people.  
This code in your master page: protected void Page_Load(object sender, EventArgs e) { //EDIT the global master as the page that has code shared on every page, then I will have various nested pages from....
What's the difference between the ASP.NET Master Page, and the MVC Master Page? And the AJAX Master Page for that matter?
Started by on , 4 posts by 4 people.  
All Master....
An MVC Master Page would probably (not sure on this) only need the Render action.
A WebForms Master Page would need to respond to Load, DataBind, PreRender, Render, etc.
To by a master page control.
I have a few pages on my asp.net website that I would like to turn off a control on the master page. Is there a way to communicate with the master page from a child page?
Started by on , 5 posts by 5 people.  
Notice it won't work without....
In the master page will be the specific name of your current Master Page, in this case MyMaster).
Here's an example of how to communicate with Master Pages from Child Pages.
ASP.NET master pages - essential things. However, I have a lot of very similar UserControls in my projects - it might be a standard layout for an AJAX ModalPopup, or something more involved. I wish I could get rid of some of my duplicated code (both in...
Started by on , 4 posts by 4 people.  
Use Load method.
Place nested user control on a place holder control in a "master" user control.
I have a master page which contains everything that inherits it within a form. A page inheriting from it needs to run some javascript to act on a text field on a page. However, I can't seem to reference that text field through the javascript, since the...
Started by on , 4 posts by 4 people.  
(I guess this removes complexities which can arise out of using same names for controls in your master page that : ....
On the page will render with a different name since that page is derived from a master page.
Page: 1   2   3   4   5   6   7   8   9   10  
More Information


Forum Search About Omgili Help Plugins Forum/Board Owners Privacy

i
In Title
In Topic
In Reply
Exclude
Boost