I want to call two functions on same event 1 is client side and other 1 is server side.
How can i do that
<input type="text" ID="txtUserName" runat="server" maxlength="50"
class="DefaultTextbox" style="width:180px;" value=""
onfocus="ControlOnFocus('', this, spanUserName);"
onblur="ControlOnBlur('',this, spanUserName); "
/>
onblur=”ControlOnBlur(); function2();
Is it correct ?
onblur="ControlOnBlur(); function2();
Thats correct. Actually it’s not very good practice to define events inlined in HTML but it works. Everyhing between ” and ” in
onblur=""is treated as one long JavaScript code block so you could write anything in it, even your whole program if you would like.