C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




Master page problem


Posted Date: 05 Sep 2008      Total Responses: 1

Posted By: sudha       Member Level: Silver     Points: 1


hi,
am using master page.while executing time,first content page is getting trigger after that only master page is getting trigger..but I need to execute master page first..bcoz in that master page am changing the Session values..depends on the session,am binding controls in content page...

plz anybody help me for this...

thanks in advance...

Thanks & Regards,
Sudha M.P





Responses

Author: avtar    05 Sep 2008Member Level: GoldRating:     Points: -20
When an end user requests a content page in the browser, the event ordering is as follows:

Master page child controls initialization: All server controls contained within the master page are first initialized.
Content page child controls initialization: All server controls contained in the content page are initialized.
Master page initialization: The master page itself is initialized.
Content page initialization: The content page is initialized.
Content page load: The content page is loaded (this is the Page_Load event followed by the Page_LoadComplete event).
Master page load: The master page is loaded (this is also the Page_Load event).
Master page child controls load: The server controls on the master page are loaded onto the page.
Content page child controls load: The server controls on the content page are loaded onto the page.


can u try something like this

Label headerLabel = (Label) Master.FindControl("Header"); // Header is my master page label id.
headerLabel.Text = "This label content is set through the Page_Load event of the child page";





Post Reply
You must Sign In to post a response.
Next : how to insert new line character
Previous : how to create a table row dynamically from the base & derived class?
Return to Discussion Forum
Post New Message
Category: ASP.NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design

Help Desk

Contact Us    Privacy Policy    Terms Of Use