how to write on click and onclientclik in in input button

Posted by Klbaiju under ASP.NET on 8/8/2012 | Points: 10 | Views : 676 | Status : [Member] | Replies : 1
Hi,
in my application ,i have to change asp controls with html control due to jquery.
my problem is i want to add onclick and onclient click in html button
like this <input type="button" runat ="server" onclick="someevent();" onclientclick="anotherevent"/>
how to solve this .because html button doesn't contain onclientclick.
in onclick event i wrote query for save. i want to add javascript validation on this button.
how to solve this.

Regards

Baiju




Responses

Posted by: Ranjeet_8 on: 8/8/2012 [Member] [MVP] Gold | Points: 25

Up
0
Down
hi..
you can use like...
 <input id="Submit1" type="submit" value="submit" onclick="SomeEvent1();SomeEvent2();" />


Klbaiju, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response