- Sep 17, 2002
- 14,582
- 162
- 106
Using .NET 1.1, I did the following:
Created a Web Control Table and dynamically added some text/controls to several rows using the attached code.
I've also added a button that merely submits the page back to the server and then writes out a value to a label.
When the page loads, the table comes up as expected. When I click the button, the page returns with the value written to the label, but my table is gone (well the rows of data are).
The tables "EnableViewState was set to true, so why did it not re-appear? I specifically put in the "isPostBack ==false" condition so that the database would not be accessed multiple times thinking the state of the page would be maintained...but I'm missing something here. I haven't done any ASP.NET programming in a while and I've gotten even rustier than I was.
Thanks for any help.
Created a Web Control Table and dynamically added some text/controls to several rows using the attached code.
I've also added a button that merely submits the page back to the server and then writes out a value to a label.
When the page loads, the table comes up as expected. When I click the button, the page returns with the value written to the label, but my table is gone (well the rows of data are).
The tables "EnableViewState was set to true, so why did it not re-appear? I specifically put in the "isPostBack ==false" condition so that the database would not be accessed multiple times thinking the state of the page would be maintained...but I'm missing something here. I haven't done any ASP.NET programming in a while and I've gotten even rustier than I was.
Thanks for any help.