I got some hidden textboxes in my web part. They lose their data if
Visible=false, and they keep them if Visible=true.
What can be wrong?
They are defined as a private array of textboxes.
dokurls[i] = new TextBox();
dokurls[i].ID = "dokurls_" + i;
dokurls[i].Visible = false;
dokurls[i].Enabled = true;
dokurls[i].EnableViewState = true;
They get their value in RenderWebPart().
they are empty again in the Command event routine of a LinkButton.
Thanks in advance
as in your case:
But why does it work in a ASP .NET application but not in a web part?
But then the control take space on the page if they are hidden this
way. If I have about 100 hidden controls it's a lot of space!
You could try setting the Height and Width to 0, or use div's around