Click here to Skip to main content
15,885,947 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have used this code:
<input id="btnDoAjaxCall" type="button" value="Check Availability" onclick="return btnDoAjaxCall_onclick()" />


But its not working in single click.It works only double click on the button
Posted
Updated 26-May-11 21:12pm
v2
Comments
cuteband 27-May-11 3:14am    
I guess your cursor is came from another event like textboxes with an event so you have encounter that issue. So try to disable the prior event and test it if its still double click.
Hemant__Sharma 27-May-11 6:20am    
1- first you should add sorrunding code.
2- add javascript code of btnDoAjaxCall_onclick();
3- Did you try debugging above javascript function in single click? i.e. setting a break point in the functiona nd checking if the debugger is coming in the function on single click of function

1 solution

If you are using ASP.Net then you can use Image button like this.......

<asp:ImageButton ID="ImageButton2" runat="server" ImageUrl="images/search.png"
onclick="ImageButton2_Click" />
 
Share this answer
 
v3
Comments
rahul dev123 27-May-11 6:13am    
what is the difference to use imagebutton or button. my problem is not to display image in button

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