Hi,
I´ve posted this thread here before, but the it was under the wrong name , so ... :
I´m trying to add to a panel more than a onw label control dynamically , for example on a button_click action :
int cislo=1;
Label myLabel;
protected void Button1_Click(object sender, EventArgs e)
{
myLabel = new Label();
myLabel.ID = "TestLabel" + cislo.ToString();
myLabel.Text = "ahoj";
Panel1.Controls.Add(myLabel);
cislo++;
}
and heres the problem , when I click he button once, it adds one label , when I click the button twice there´s still only one label control
I think there might be some problem with the reloading of the page, when I add to the site another button and click it after adding the one label control to the page it disappears, maybe because of the reloading...
< ...
Go to the complete details ...