Posted on: 4/19/2014 2:01:36 AM | Views : 389

I want to use ViewState to save some List<string> and List<int>.
I have a button names btnDel.
When it is clicked it will load ViewState and delete one record and save it to ViewState again.
I have another button names btnSave.
When it is clicked it will save the ViewState to database.

Now I face a problem.
btnDel won't work.
Suppose there are 3 records in List<string>.
I press btnDel,and then there are 2 records now.
And then press btnSave it loads ViewState still 3 records.
it seems that btnDel can't chagne the ViewState.
So could somebody help me?Tell me what should I do?

Go to the complete details ...