What is the alternate way of calling Javascript function instead of OnClientClick event of Button control?

 Posted by Rajesh_Kumar on 2/11/2014 | Category: JavaScript Interview questions | Views: 565 | Points: 40
Answer:

We can use onClick event of Button control for calling any Javascript function.

onClick event is same as OnClientClick event.

For Example:-
function alert_msg()

{
alert('rajesh');
}

<asp:button id="btn_alert" onClick ="alert_msg();"/>


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response