LinkButton需要同时在客户端和服务器端工作 [英] LinkButton need to work both client side and server side
本文介绍了LinkButton需要同时在客户端和服务器端工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Hei我在asp.net中有以下一行
Hei I have the following line in asp.net
<asp:LinkButton runat="server" ID="createuser" OnClientClick="javascript:$(''#dialogform'').dialog(''open'');" onclick="AddCaseInfo_Click">Create Case</asp:LinkButton>
OnClientClick
可以正常工作,但OnClick
不能正常工作:(
请在此
OnClientClick
works fine, but not OnClick
:(
Please suggest me on this
推荐答案
(''#dialogform'').dialog(``open'');"onclick =" AddCaseInfo_Click>创建案例< ;/asp:LinkButton>
(''#dialogform'').dialog(''open'');" onclick="AddCaseInfo_Click">Create Case</asp:LinkButton>
OnClientClick
可以正常工作,但OnClick
不能正常工作:(
请在这个问题上建议我
OnClientClick
works fine, but not OnClick
:(
Please suggest me on this
尝试:
<asp:LinkButton runat="server" ID="createuser" OnClientClick="javascript:
(''#dialogform'').dialog(''open''); return true;" onclick="AddCaseInfo_Click">Create Case</asp:LinkButton>
(''#dialogform'').dialog(''open''); return true;" onclick="AddCaseInfo_Click">Create Case</asp:LinkButton>
只需使用Viewsource验证链接是否已附加并渲染了两个处理程序即可.
Just verify using Viewsource that both the handlers are attached and rendered for the link.
这篇关于LinkButton需要同时在客户端和服务器端工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文