Information générale
Titre:
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
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement