Whenever a page posts back, you must recreate any dynamically added controls
and ensure they have the same ID property they had when you first created
them.
Setting EnableViewState to true helps too.
-- Peter
Recursion: see Recursion
site:
http://www.eggheadcafe.com
unBlog:
http://petesbloggerama.blogspot.com
BlogMetaFinder:
http://www.blogmetafinder.com
"Arne Garvander" wrote:
> I am programming input forms in Asp.net 2.0
> Some textboxes are static on the form and viewstate works fine.
> Some textboxes have to be dynamically added to the form at run-time which
> makes viewstate difficult to maintain. Sometimes I have got viewstate to
> magically work. Sometime I have to manually restore viewstate.
> What is the best way to deal with dynamically created input boxes?
>
> --
> Arne Garvander
> Certified Geek
> Professional Data Dude