开发者

how to make textbox text will not disappear on button click event?

开发者 https://www.devze.com 2023-02-21 21:11 出处:网络
I have TextBox and button1 on my asp.net webform. I want when I click button1 then the text on the TextBox will remain the same as it is. It will not disappear, on butto开发者_如何学Gon click event.

I have TextBox and button1 on my asp.net webform.

I want when I click button1 then the text on the TextBox will remain the same as it is. It will not disappear, on butto开发者_如何学Gon click event.

I want vb.net code to do this


You need to make sure that you have ViewState enabled - it is enabled by default but it is possible that you have disabled it (either for the TextBox, or possibly for the entire page).

0

精彩评论

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