I want to call the click event handler for my iteminsert / itemupdate button from javascript. How can i reference this button with ID="btnUpdate" as shown below.
I try to use document.getElementById but it is not found. I am guessing this is because the edit form is hidden.
Any help would be appreciated.
Thanks,
<
EditFormSettings EditFormType="Template">
<FormTemplate>
....
<
asp:Button ID="btnUpdate" TabIndex="3" Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %>'
runat="server" CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>'>
</asp:Button>