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:
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?
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.
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 -->
It doesn't appear to post back in Chrome either. Firefox is the only browser that gets the postback.
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?
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.
is working on a reply...