TextBox控件在aspx页面直接设ReadOnly属性为ture,后台得不到值。
解决办法如下
      
在后台Page_Load方法里加入下面的代码

TextBox1.Attributes.Add("readonly", "readonly");

 

相关文章:

  • 2022-12-23
  • 2021-10-01
  • 2021-08-12
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-08
  • 2022-12-23
  • 2021-07-15
  • 2022-12-23
  • 2021-11-11
相关资源
相似解决方案