在进行注册的时候 当点击我已阅读此协议时按钮才有效这是怎么实现的啊!

解决方案 »

  1.   

    在“点击我已阅读此协议时按钮”的这个按钮的Click事件中
      

  2.   

    是RadioButton吧?怎么可能没有呢,你在设计界面上双击它在你的代码中就会出现这个事件了
      

  3.   

    但那个根本不好使啊!是这个事件CheckedChanged
      

  4.   

    那就在这个事件中写
    button.Enabled=radiobutton.Checked;
      

  5.   

    别忘了你的button的Enabled属性默认为false
      

  6.   

     protected void Page_Load(object sender, EventArgs e)
        {
            this.Panel1.Visible = true;
            this.Panel2.Visible = false;
            this.Panel3.Visible = false;
            this.Button1.Enabled = false;
            //RadioButton1.Attributes.Add("Check", "if (RadioButton1.Checked==true) return true;");
            //RadioButton1.Check += new EventHandler(a); 
        }
     protected void RadioButton1_CheckedChanged(object sender, EventArgs e)
        {
            Button1.Enabled = RadioButton1.Checked;
        }
      

  7.   

    是webform?不早说……
    把RadioButton的autopostback属性设为true
      

  8.   

    那就赶紧结贴给分吧,hiahia~~