错了,用户控件中没有form:)打错了

解决方案 »

  1.   

    look inside a.ascx.cs, in InitializeComponents to see if you have something like but.Click += new EventHandler(but_Click);if you do, remove it or remove the OnClick attribute from the <asp:Button>
      

  2.   

    <asp:Button id="but" runat="server" OnClick="but_Click"/>
    或者
    this.but.Click += new System.EventHandler(this.but_Click);
    去掉任一个
    调用了两次!!!!!