My question is :
As we know ViewState is not responsible for storing and restoring TextBox,CheckBox and such controls Values. This is done by LoadPostData() method to controls that implement IPostBackDataHandler interface.
And we also know after Load stage,RaisePostBackEvent stage occurs and raise corresponding events such Button Click or if Text changed in a TextBox, its TextChanged event will be fired.
So how does system track the text changed if ViewState is not responsible for that and which mechanism actually fires TextBox TextChanged event ?
I am actually confused at this point.
Thanks in advance.
I think it is working in this way :
TextBox control implements IPostBackDataHandler instead of IPostBackEventHandler because it’s fired by its text state. So if any changes happened in postedValue which is determined
portion then it returns true and keep executing so finally TextChanged fired. Pff confusing but looks easy tho.