Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using buttons on master page to control content controls
Message
From
09/01/2008 12:46:17
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Using buttons on master page to control content controls
Miscellaneous
Thread ID:
01280620
Message ID:
01280620
Views:
50
Hi,

I have a master page that has some buttons. Content page has equivalent number of panels. When I press some button on the master page I want one panel to be visible and others to be invisible. To do so I declared a variable in the master page like
public int BtnFlag;
and sets the value of this button in the click event of the button like
protected void BtnJobSeekers_Click(object sender, ImageClickEventArgs e)
{
BtnFlag = 3;

}

Now in the content page I did strong binding with master by typing
< %@ MasterType VirtualPath="~/BTS.Master" % >

When I try to catch the value of the flag from master to content in page_load event, it always looses its value and give me 0 instead of 3. Please guide

Thanks
Bharat
Reply
Map
View

Click here to load this message in the networking platform