页面上有个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>");
}断点根本不进这个事件 前台点了按钮没反应
一般会在哪些情况遇到这种问题啊
我这个页面是嵌套在母版页里面的!
<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>");
}断点根本不进这个事件 前台点了按钮没反应
一般会在哪些情况遇到这种问题啊
我这个页面是嵌套在母版页里面的!
<asp:ImageButton ID="imgbtn" runat="server" ImageUrl="/images/tyy.jpg" Width="81px"
Height="25px" OnClick="imgbtn_Click" />
找到原因了
美工在页面复制代码的时候又搞了一个form。
草。。
是你页面有个form表单,而你的form表单没有action
去掉form表单就可以了