设置TextBox控件readOnly="True",后台无法取得客户端TextBox中值的解决方法

在TextBox中设置属性 ContentEditable="false" 即可。例:

<asp:TextBox Id="txt_DeptName" runat="server" Text="" ContentEditable="false"></TextBox>

注意:需要开启页面ViewState视图状态。

posted on 2010-04-06 11:00  Tim's Home  阅读(232)  评论(0编辑  收藏  举报