Greetings.
I have 3 panels with visible=false
and in .cs
the method that shows one or the other according to the button that is pressed, but all this is within the same file products.aspx/.cs
. What happens if I want to execute the panel.visible = true
but from an external link another different file, for example from index.aspx
.
I enclose drawing if I make myself understand better.
protected void Button_ProductosClick_1(object sender, EventArgs e)
{
this.PanProductsOne.Visible = true;
this.PanProductsTwo.Visible = false;
this.PanProductsThree.Visible = false;
}
protected void Button_ProductosClick_2(object sender, EventArgs e)
{
this.PanProductsOne.Visible = false;
this.PanProductsTwo.Visible = true;
this.PanProductsThree.Visible = false;
}
protected void Button_ProductosClick_3(object sender, EventArgs e)
{
this.PanProductsOne.Visible = false;
this.PanProductsTwo.Visible = false;
this.PanProductsThree.Visible = true;
}