* 启用ViewState的情况下,设置某一服务器控件的Value后,然后再将期Visible设置成false
 * 在回传时(PostBack)其Value不会丢失,ViewState会保留状态
 * 如 if(!IsPostBack){
 *    txtName.Text="xxxx";
 *    txtName.Visible=false;
 * }
 * 表单上disabled属性的控件其值在submit时不会Post到服务器

相关文章:

  • 2021-12-17
  • 2017-12-01
  • 2022-01-24
  • 2021-04-26
  • 2022-02-10
猜你喜欢
  • 2021-07-04
  • 2022-12-23
  • 2022-12-23
  • 2021-09-22
  • 2022-01-15
  • 2022-12-23
相关资源
相似解决方案