请高人帮帮忙
写具体的代码
谢谢

解决方案 »

  1.   

    你是要在客户端判断还是服务器端?要是服务器端不久出发click事件了吗?
      

  2.   

    你控件都有OnClick事件啊。通过这个事件不就可以判断了吗??
      

  3.   

    Page.Request.Form.AllKeys[Page.Request.Form.AllKeys.Length-1]=="Button2"
      

  4.   

    对于多个按键判断,我一般做一个不可见的textBox1
    button1.Atributes.Add("onclick","document.From1.textBox1.value=1;");
    button2.Atributes.Add("onclick","document.From1.textBox1.value=2;");然后判断 Request.From["textBox1"]
    case 1:
      ....
    case 2:
    ....