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 ...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top