General information
Title:
Using buttons on master page to control content controls
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only