页面上有个imagebutton后台的click事件进不去一般有哪些情况啊
 <asp:ImageButton ID="imgbtn" runat="server" ImageUrl="/images/tyy.jpg" Width="81px" 
                          Height="25px" onclick="imgbtn_Click" />        protected void imgbtn_Click(object sender, ImageClickEventArgs e)
        {
            Response.Write("<script>alert('预订失败,请拨打114');</script>");
        }断点根本不进这个事件 前台点了按钮没反应
一般会在哪些情况遇到这种问题啊
我这个页面是嵌套在母版页里面的!

解决方案 »

  1.   


     <asp:ImageButton ID="imgbtn" runat="server" ImageUrl="/images/tyy.jpg" Width="81px"  
      Height="25px" OnClick="imgbtn_Click" />
      

  2.   

    如果 放在updatepanel里面  去掉updatepanel 试试
      

  3.   

    你那么肯定啊!~。。onclick属于客户端的事件OnClick是服务器事件
      

  4.   

    你双击该ImageButton能进到后台的事件么?
      

  5.   

    删掉重新再来一遍,生成后台事件点ImageButton用双击!
      

  6.   

    按钮的后台事件触发和DropDownList以及RadioButtonList的AutoPostBack有关系吗
      

  7.   

    fuck
    找到原因了 
    美工在页面复制代码的时候又搞了一个form。
    草。。
      

  8.   

    肯定是你的ImageButton控件包含在其他控件里面了
      

  9.   

    这个问题我遇到过
    是你页面有个form表单,而你的form表单没有action
    去掉form表单就可以了
      

  10.   

    http://blog.csdn.net/xianfajushi/archive/2010/10/11/5933275.aspx