I have this at the bottom of my page:
<form id="Login" method="post" runat="server">
<span class="MenutextWhite">You are logged in as
<asp:Label ID="lblUsername" Runat="server"></asp:Label>
- not you? </span>
<asp:LinkButton CssClass="MenutextWhite" ID="btnLogout" Runat="server" Text="Log out"
OnClick="Logout_Click" tip="click here to log out">
</asp:LinkButton> | <a href = "admin.aspx"
class="MenutextWhite">Admin</a>
</form>
this deals with displaying who the user is and giving access to the admin section and logoff button. (I am not using masterpages)
However further up the page, in the main content area, I need another control (freetextbox)
How can I get around this single form only problem?
Solved!
The 2 Forms that I required were in different DIV’s.
as i can only have one form,
I put the tags just inside the – outside all contents.
Now everything works ok.