Scott 混合理论
Scott 混合理论

Reputation: 2332

ViewState size get bigger and bigger, is this a updatepanel's bug or not?

when ddl select changes autopostback

there's a table and some ddl in updatepanel.

like this: asp.net page structure

why this happens???

Upvotes: 1

Views: 271

Answers (1)

Aristos
Aristos

Reputation: 66641

I think that you forget to reset your drop down list and you place them again and again data.

So two thinks you can do. Use the IsPostBack for populate your dropdownlist and not populate them again if there is a post back, or on every post back, first clear the dropdown items them add again the list.

For fast check if the dropdownlist is the case, set enableviewstate="false" on them

Upvotes: 1

Related Questions