开发者

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();

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜