views:

24

answers:

1

Hi, I have set an asp.net page to refresh every after sometime. The problem is that once the page is refresh, the state of the controls are lost, like the dropdown loses all its item. I checked the viewstate property of the controls but they are set to be enabled. Any idea why is it so?

Thanks,

+1  A: 

Because a web form is also an HTML form. You need to POST the form instead of refreshing.

Sklivvz