I have an asp.net server control (with the asp: in its definition). The button has been set to do post back.
On the server side, I have the on click event handler e.g btnSave_click()
On the client side, I have a javascript function to be invoked on the click event e.g btnSave.Attributes.Add("onclick","javascript: return CheckIsDirty();")
Am not sure which order these two will be executed. Because I want first on the client side to warn of any data entry fields that are not yet filled-out before actually saving any data.
Any help?