I’ve found topics covering disabling buttons to avoid submitting twice (assuming this could be done via javascript), but what i need is to disable button of submit if field “formSubmitted” in the database holds true value. otherwise this means the form has not been submitted and this submit is required. Any idea how to do this?
<asp:TableCell>
<asp:Button id="acceptButton" Text="Accept" runat="server" OnClick="Click"/>
<asp:Button id="declineButton" Text="Decline" runat="server" OnClick="DeclineRequest"/>
</asp:TableCell></asp:TableRow></asp:Table></form></asp:Content>
so yeh the accept and decline buttons are what i want to disable if formsubmiited variable holds true.
Thanks again,
1 Answer