提交时,textBoxes丢失了值 [英] On submit, textBoxes lost the values

查看:60
本文介绍了提交时,textBoxes丢失了值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



所有服务器控件(文本框)都位于Div中,该分区中的runat ="server"和Button也是如此.
问题是,当我单击按钮时,文本框的值将变成".
我该怎么办.

Sutotpal



All server controls(textboxes) is in Div, which is runat="server" and Button also in this div.
Problem is that When i Click the button, the textboxes values become this "" .
What should i do.

Sutotpal

推荐答案

这是不可能的. AFAIK,ControlState将文本的值保留在TextBox中.

您是否将TextBox的值分配给代码中任何地方的空字符串(")?
This is not possible. AFAIK, ControlState preserves the value of the text in a TextBox.

Are you assigning the value of TextBox to empty string ("") anywhere in the code?


这篇关于提交时,textBoxes丢失了值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆