开发者

Retrieving values from view state

开发者 https://www.devze.com 2023-01-01 09:09 出处:网络
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 bo

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

精彩评论

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