Calling a code-behind function from JavaScript that may return another JavaScript function
问题 I have a problem with this that works for one button and not for another. The one that works is a button that calls a ModalPopup to add a new row to a GridView inside an UpdatePanel. If it's successful, it pops up an alert with a message, else another alert with the Exception message. The code is very similar to the other one's, except it's in a ModalPopupExtender. The button that throws the known exception about the EventValidation goes as follow: Web: <asp:Button ID="btnAlquilar" runat=