Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Will Waggoner 17 posts 38 karma points
    Oct 28, 2010 @ 20:11
    Will Waggoner
    0

    User controls in Macros aren't submitting in IE?

    We have a very simple user control that has two text fields and one button (it doesn't matter whether or not it's a text button or an image button.)  In Firefox, the postback fires just fine...  in IE it doesnt!  The postback just never happens.  Are we doing something wrong?  This is our login control:

    <p><em class="note"><strong>*</strong> required fields</em></p>

    <div class="forms">
        <p><asp:Label ID="lblInvalid" runat="server" text="Invalid login." visible="false" /></p>

        <p>
            <label class="name" for="txtUserName">User Name</label>
            <asp:textbox id="txtUserName" runat="server" Text="" /> <sup>*</sup>
        </p>

        <p>
            <label class="name" for="txtPassword">Password</label>
            <asp:TextBox id="txtPassword" runat="server" Text="" TextMode="Password" /> <sup>*</sup>
        </p>

        <p>
            <asp:Button ID="btnSubmit" CssClass="submit" runat="server" Text="Submit" OnClick="btnSubmit_Click" />
        </p>

        <p>
            <a href="/reset-password">Forgot your information?</a>
        </p>
    </div><!-- end forms -->

  • Will Waggoner 17 posts 38 karma points
    Oct 28, 2010 @ 20:19
    Will Waggoner
    0

    It doesn't appear to post back in Chrome either.  Firefox is the only browser that gets the postback.

  • Will Waggoner 17 posts 38 karma points
    Oct 28, 2010 @ 20:48
    Will Waggoner
    0

    I did some mor research and it might be related to the <form runat="server"> we have in our master template.  I found references to the <?ASPNET_FORM> tag but that breaks all the syntax highlighting and blows up with the error we inserted that form for in the first place:

    Control 'txtUserName' of type 'TextBox' must be placed inside a form tag with runat=server.

     

    What are we doing wrong?  How do we get our controls to sumbit and not get this error?

  • Will Waggoner 17 posts 38 karma points
    Oct 28, 2010 @ 21:15
    Will Waggoner
    1

    Figured out the issue.  We had a <form runat="server"> directly inside the <body> tag, but we had other <forms> inside that NOT marked runat="server".  Mozilla can handle that but IE and Chrome don't.  Whew.

Please Sign in or register to post replies

Write your reply to:

Draft