How to call two functions on single event. one as a javascript function other a server side function
asp.net, asp.net-ajax, c#, javascript
Solution
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.
onblur="sentence1; sentence2; sentence3;"
Problem
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(); ```