文本框当然有,服务器的用Enable,客户端的用disable

解决方案 »

  1.   

    if(RadioButton1.Checked)
    {
      txtDate.Enabled=false;
    }
    这样写不对么?为什么不起任何作用呢?
      

  2.   

    把单选按钮的 AutoPostBack 属性设置成true
      

  3.   

    服务器的  Enable=true 是显示,Enable=false是不显示
    客户端的  disable=false是显示,disable=true是不显示
    服务器端的 要设置autopostback=true  还要在RaidoButton的Click事件中写才会执行
    而HTML的不用
      

  4.   

    RadioButton1.AutoPostBack = true;//或在属性里设置
    RadioButton1_Click()
    {
        textBox1.Enable = false;
    }