Retrieving values from view state
How can we retrieve value of a sever control from viewstate?
For example if we want to retrieve value of text in t开发者_StackOverflowexbox server control.
first you have to store the value of text box in the viewstate
viewstate["tboxValue"] = tbox.text;
and now suppose you want to retrieve it in label
lblValue.text = viewstate["tboxValue"].ToString();
精彩评论