Mar 22, 2011, 7:28 PM
[CLOSED] ViewState
I'm having a problem using page's viewstate:
- I set my viewstate["123"] = true on pageload when it's not postback.
- In the change directevent of a textfield i change it to false.
- On the click directevent of a button i read it. It should be false, since it was the last value i've put in it, but it is always true. I guess it's always picking the first value i put on it.
Could it be related to asyncpostbacks? Have you got a suggestion on how can i work it around, or there is something similar to viewstate implemented by coolite i could use in this situation?
- I set my viewstate["123"] = true on pageload when it's not postback.
- In the change directevent of a textfield i change it to false.
- On the click directevent of a button i read it. It should be false, since it was the last value i've put in it, but it is always true. I guess it's always picking the first value i put on it.
Could it be related to asyncpostbacks? Have you got a suggestion on how can i work it around, or there is something similar to viewstate implemented by coolite i could use in this situation?
Last edited by Daniil; Apr 01, 2011 at 12:37 PM.
Reason: [CLOSED]