asp.net按钮点击事件不会触发 [英] asp.net Button click event won't fire

查看:470
本文介绍了asp.net按钮点击事件不会触发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我是ASP.NET新手,我想在VB.net上使用这个aspx代码创建一个Button Click事件



Hi

I am new with ASP.NET and I want to create a Button Click event using this aspx code on VB.net

<asp:Button ID="btnClose4" runat="server" Text="Close" />




<ajaxToolkit:ModalPopupExtender ID="MPEDivison2" runat="server" PopupControlID="divPopUpDiv"

                TargetControlID="btnDivision" OkControlID="btnClose" PopupDragHandleControlID="panelDragHandleDiv"

                BackgroundCssClass="ModalStyle">
            </ajaxToolkit:ModalPopupExtender>

推荐答案

看完之后小心翼翼地在aspx.vb上,事实证明 UseSubmitBehavior 设置为 false

,这就是为什么Button Click事件不会触发的原因。 。

感谢您的建议很高兴我找到了这个不错的论坛。



BTW:

如果我怎么能关闭这个帖子?我认为我的问题已经解决了
After looking carefully on the aspx.vb, It turns out that UseSubmitBehavior is set to false
that why then the Button Click event won't fire..
thanks for the suggestion glad I found this nice forum.

BTW:
If how can I close this thread ? I think my problem is already solve


这篇关于asp.net按钮点击事件不会触发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆