One may need to provide a confirmation dialog or check some validation to the users and initiate
an AJAX request if confirmation accepted or validation perform successful. Confirmation using standard post backs
often looks like this:
<asp:Button ID="btnSaveComplaint" runat="server" Text="Save" OnClick="btnSaveComplaint_Click" OnClientClick="return ValidateMacroText();" />
Note: ValidateMacroText() is javascript function which returns true if validation perform successfully.