1

I have a button which has probably been implemented wrong, since it causes an error 500. The page works fine without the button and I'm not sure where the problem lies.

The .aspx:

<asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">
<div id="notify_form">
    <p>Please enter a new email:</p>
    <table class="ms-formtable" width="100%">
        <tr>
            <td><input type="text" runat="server" id="txtEmail"/></td>
        </tr>
        <tr>
            <td class="ms-formlabel"></td>
            <td>
                <asp:Button runat="server" ID="btnSubmit" OnClick='SaveEmail' />
                <asp:Button runat="server" ID="btnCancel" OnClientClick="window.frameElement.cancelPopUp(); return false;"/>
            </td>
        </tr>
    </table>
</div>
</asp:Content>

The SaveEmail method does nothing at the moment.

closed as off-topic by Eric Alexander Aug 11 '16 at 12:16

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Programming questions not specific to SharePoint are off-topic here, but can be asked on Stack Overflow." – Eric Alexander
If this question can be reworded to fit the rules in the help center, please edit the question.