Click here to Skip to main content
15,949,686 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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 works fine, but not OnClick :(

Please suggest me on this
Posted
Updated 23-Mar-11 3:08am
v4

1 solution

Try:
<asp:LinkButton runat="server" ID="createuser" OnClientClick="javascript:$('#dialogform').dialog('open'); return true;" onclick="AddCaseInfo_Click">Create Case</asp:LinkButton>


Just verify using Viewsource that both the handlers are attached and rendered for the link.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900