Saludos.
Tengo 3 paneles con visible=false
y en el .cs
el método que muestra uno o otro según el botón que se oprima, pero todo esto esta dentro del mismo archivo products.aspx/.cs
. Que pasa si quiero ejecutar el panel.visible = true
pero desde un enlace externo otro archivo diferente, por ejemplo desde index.aspx
.
Adjunto dibujo haber si me hago entender mejor.
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;
}