[英]Jquery Modal Pop Up
I am using asp.net image button when we click the image button Modal popup will display.我正在使用 asp.net 图像按钮,当我们单击图像按钮时,将显示模态弹出窗口。 now My problem is when i click the button popup is coming but it post back to the server after that popup window is closed can u give the solution for this
现在我的问题是当我点击按钮弹出来但它在弹出 window 关闭后回发到服务器你能给出解决方案吗
My Code is我的代码是
<asp:ImageButton ID="imgemail" runat="server" ImageUrl="~/images/images.jpg" />
$("#imgemail").click(function() {
$("#dialog").dialog("open");
});
Unless you have a specific need, there is no point in doing an ASP.NET Image Button, you could do something like this.除非您有特殊需要,否则做 ASP.NET 图像按钮是没有意义的,您可以这样做。
<a id="lnkEmail">
<img src="/images/images.jpg" alt="Your text" />
</a>
$("#lnkEmail").click(function() {
$("#dialog").dialog("open");
});
Now, you would want to set additional attributes on the image etc, but you get the idea.现在,您可能想在图像等上设置其他属性,但您明白了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.