Which event do we use to raise Command Button Or Link Button event at client-side?

 Posted by vishalneeraj-24503 on 5/3/2014 | Category: JavaScript Interview questions | Views: 1882 | Points: 40

We use OnClientClick event to raise button event in client-side.In the OnClientClick event,we have to associate Javascript function which will fire when we click on Button.

For Example:-
<asp:Button ID="Button2" runat="server" Text="Button" OnClientClick="fire_button_event();" />

<script type="text/javascript">
function fire_button_event()
alert('button click event fired');

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response