IsPostBack
If(!IsPostBack) { Panel1.Visible=false; Panel2.Visible=false; }
if (!IsPostback) { Panel.Visible = Panel2.Visible = false; } // logic to set one or the other panel to visible.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)