471,071 Members | 1,117 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,071 software developers and data experts.

ViewState not working for runtime web controls on postback

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

Oct 28 '06 #1
0 957

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

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.