for (int i = 1; i <= test; i++)
{
Panel panel = (Panel)TabContainer1.FindControl("tab3").FindControl("P"+i.ToString());
string t=panel.ID;
}
// Here I stored the panel id in 't'.
Now if panel id is "P1", the P1 panel should display. like wise panel2.
i have placed some controls in panel
...
Go to the complete details ...