使用JavaScript和Asp.NET [英] Using JavaScript and Asp.NET
本文介绍了使用JavaScript和Asp.NET的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
<asp:Button ID="btn_prepareExp" runat="server" CssClass="but_All_default"
Text="Prepare Expense Advice" onclick="btn_prepareExp_Click" OnClientClick="if (!confirm('Are You Sure??')) return; this.disabled=true;this.value='PleaseWait..';"
Visible="False" />
这是按钮编码,但我的按钮回发没有进入服务器端请帮帮我...
This is button coding but my Button is Post Back not going in server side Please help me...
推荐答案
试试这个:
Try this:
<asp:Button ID="btn_prepareExp" runat="server" CssClass="but_All_default"
Text="Prepare Expense Advice" onclick="btn_prepareExp_Click" OnClientClick="if (!confirm('Are You Sure??')) return; this.disabled=true;this.value='PleaseWait..'; return true;"
Visible="False" />
--Amit
--Amit
将此属性添加到Button控件以调用客户端和服务器端点击事件。
UseSubmitBehavior =true
Add this attribute to Button control in order to call both client and server side click events.
UseSubmitBehavior="true"
这篇关于使用JavaScript和Asp.NET的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文