javascript - Difference between onclick() and onClientClick()? -


If I use both onclick () and onClientClick () Can I be sure that the server side will be called only after the client-side function returns or vice versa? For example:

  & lt;% @ Page Language = "C #" AutoEventWireup = "true" codefile = "Default.aspx.cs" Inherits = " _Default "%" & Lt;% @ Import Namespace = "System.Xml"% & gt; & Lt ;; DOCTYPE HTML PUBLIC "- // W3C // DTT XHTML 1.0 Transcription // N" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> & Lt;% protected void save_n_display (object sender, eventArgse E) {// when valid () it will be correct ...}%> & Lt; Asp: button id = "button1" OnClientClick = "valid ()" onClick = "save_n _display" "text =" check "runat =" server "/> gt; 



  

Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -