Junaid
Junaid

Reputation: 1755

control values on refresh

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,

Upvotes: 0

Views: 120

Answers (1)

Sklivvz
Sklivvz

Reputation: 31133

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

Upvotes: 1

Related Questions