且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

LinkBut​​ton需要同时在客户端和服务器端工作

更新时间:2023-01-18 09:28:28

(''#dialogform'').dialog(``open'');"onclick =" AddCaseInfo_Click>创建案例< ;/asp:LinkBut​​ton>
(''#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.