I have a web page with multiple panels that have their Visual parameter set to false. At run time, I would like to be able to add controls to specifically numbered panels and then change their Visual parameter to true. I know that I can create a specific
panel and add a control to that specific panel with the following C# code:
Panel Panel1= new Panel();
Panel1.Controls.Add(myLabel);
But, I would like to create or just access parameters of a specific panel by referring to it’s ID with a string of characters that are created at run time as with the following C# code?
int i = 1;
string p = “Panel” + i.ToString();
p.Controls.Add(myLabel);
p.Visual = true;
Is this possible?
Go to the complete details ...