When placing my LoadData() and SaveData() subs in those places... the
textboxes all contain nothing.
I won't post 100s of lines of code... but seems like the problem area is
most likely:
My LoadData() sub gets the text from the database... and places it in the
newly created Panel1.txtBox0.Text (and 1,2,3) controls
(And also stores it in ViewState(0), ViewState(1), ViewState(2), etc.)
My SaveData() sub tries to save the values ViewState(0), ViewState(1),
etc....
(It can't find Panel1.txtBox0.Text (and 1,2,3) controls... because they are
created "on the fly".)
Doesn't seem to work if I try to manipulate ViewState(n) in my code... or
let the system do it automatically.
:-(
>I think you are using VB:
>
[quoted text clipped - 19 lines]
> setting the enableviewstate property of the textboxes before adding
> them to the page.
ray.bradbury9@gmail.com - 13 Feb 2006 16:32 GMT
a few days ago I saw a FAQ about viewstate in eggheadcaffe. I don´t
remember it, but think that talked about dinamically created controls
and viewstate. hope it helps.