Posted on: 6/25/2014 9:46:29 PM | Views : 424

Hello, I have 2 panel's on my page, and I am wanting to toggle the visibility of them.

In my code, I have:

protected void btn_Edit_Click(object sender, EventArgs e) { Panel1.Visible = false; Panel2.Visible = true; Debug.Print("Edit Button - Displaying Panel 2"); } protected void btn_Save_Click(object sender, EventArgs e) { Panel1.Visible = true; Panel2.Visible = false; Debug.Print("Edit Saved Button - Displaying Panel 1"); } Now, that code was designed as a simplistic task. I will be doing my database changes etc within them.

Now, The 1st button is btn_edit, and it works. The Panel1 does hide, Panel2 does show. Debug IS printed.
Now, on the 2nd panel (With btn_save), I click the button, Panel2 does NOT hide, panel1 does NOT show.   ...

Go to the complete details ...