468,771 Members | 1,929 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,771 developers. It's quick & easy.

ViewState not working for runtime web controls on postback

Hi,
I am using ASP.NET 2.0 with C#.
On a page I have a few (static) textboxes that get populated from database
and then I create other textboxes during runtime using the folloiwng steps:
1. I add a TableRow(TR) to an existing table using HtmlTableRow
2. I add TableCells(TD) to the above TR using HtmlTableCell
3. I add TextBoxes to the TDs using using TextBox

Then I start entering into the runtime Textboxes, when done, I press Enter
which does a postback. Now I am back at the page and my first list of static
textboxes are still there while the runtime textboxes and the TR and TDs are
gone. If I try to recreate the TRs with the same name as before, I get an
invalid ID meaning that the TR is still on the form. I just don't see it.

How would I presere the runtime web controls upon postback? How would I see
them?

Thanks
Oct 28 '06 #1
0 922

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

10 posts views Thread by neo | last post: by
4 posts views Thread by dm_dal | last post: by
6 posts views Thread by John | last post: by
2 posts views Thread by Steve Pierce | last post: by
10 posts views Thread by Robert | last post: by
5 posts views Thread by russell.lane | last post: by
2 posts views Thread by Merdaad | last post: by
9 posts views Thread by =?Utf-8?B?TUNN?= | last post: by
1 post views Thread by CARIGAR | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.