ViewState problem

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi experts!

i create the dropdown control at runtime. this is placed in a table control in each row of table.

now when the page is submited , the table and controls are not available. can someone suggest how to retain these even after the round trip ...

anything to do with view state?
 
Hi,

do you recreate the controls on postback as well? They need to be recreated
so that ViewState is restored (ViewState contains control data, not control
instances themselves)

--
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist

sk said:
Hi experts!

i create the dropdown control at runtime. this is placed in a table control in each row of table.

now when the page is submited , the table and controls are not available.
can someone suggest how to retain these even after the round trip ...
 
Back
Top