V
VB Programmer
I only have 1 set of <FORM> tags in my HTML file, but I keep getting this
error. Any ideas?
***********
A page can have only one server-side Form tag.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.
Exception Details: System.Web.HttpException: A page can have only one
server-side Form tag.
*************
Here's my html:
<%@ Register TagPrefix="uc1" TagName="ucMnuNavEmpty"
Src="ucMnuNavEmpty.ascx" %>
<%@ Register TagPrefix="uc1" TagName="ucMnuEmpty" Src="ucMnuEmpty.ascx" %>
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="Login.aspx.vb"
Inherits="sp.Login"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>Login</title>
<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema"
content="http://schemas.microsoft.com/intellisense/ie5">
<LINK href="sp.css" type="text/css" rel="stylesheet">
</HEAD>
<body leftMargin="0" topMargin="0" rightMargin="0">
<FORM id="Form1" method="post" runat="server"> <!-- ImageReady Slices
(spSite.psd) -->
<P></P>
<DIV align="center">
<TABLE id="Table4" cellSpacing="0" cellPadding="0" width="700"
align="center" border="0">
<TR>
<TD><IMG height="1" src="images/spacer.gif" width="10"></TD>
<TD><IMG height="1" src="images/spacer.gif" width="117"></TD>
<TD><IMG height="1" src="images/spacer.gif" width="19"></TD>
<TD><IMG height="1" src="images/spacer.gif" width="38"></TD>
<TD><IMG height="1" src="images/spacer.gif" width="314"></TD>
<TD><IMG height="1" src="images/spacer.gif" width="3"></TD>
<TD><IMG height="1" src="images/spacer.gif" width="181"></TD>
<TD><IMG height="1" src="images/spacer.gif" width="9"></TD>
<TD><IMG height="1" src="images/spacer.gif" width="9"></TD>
<TD></TD>
</TR>
<TR>
<TD colSpan="9"><IMG height="9" src="images/spSite_01.jpg"
width="700"></TD>
<TD><IMG height="9" src="images/spacer.gif" width="1"></TD>
</TR>
<TR>
<TD rowSpan="9"><IMG height="491" src="images/spSite_02.jpg"
width="10"></TD>
<TD colSpan="3" rowSpan="2"><IMG height="25"
src="images/HeaderLeft.jpg" width="174"></TD>
<TD rowSpan="3"><A href="http://www.sp.com"><IMG height="26"
alt="Stroke Play Homepage" src="images/spWord.jpg" width="314"
border="0"></A></TD>
<TD rowSpan="4"><IMG height="104" src="images/spSite_05.jpg"
width="3"></TD>
<TD colSpan="2"><IMG height="24" src="images/HeaderRight.jpg"
width="190"></TD>
<TD rowSpan="9"><IMG height="491" src="images/spSite_07.jpg"
width="9"></TD>
<TD><IMG height="24" src="images/spacer.gif" width="1"></TD>
</TR>
<TR>
<TD colSpan="2" rowSpan="3"><IMG height="80"
src="images/spSite_08.jpg" width="190"></TD>
<TD><IMG height="1" src="images/spacer.gif" width="1"></TD>
</TR>
<TR>
<TD colSpan="3" rowSpan="2"><IMG height="79"
src="images/spSite_09.jpg" width="174"></TD>
<TD><IMG height="1" src="images/spacer.gif" width="1"></TD>
</TR>
<TR>
<TD><IMG height="78" src="images/spSite_10.jpg" width="314"></TD>
<TD><IMG height="78" src="images/spacer.gif" width="1"></TD>
</TR>
<TR>
<TD rowSpan="2"><IMG height="95" src="images/spSite_11.jpg"
width="117"></TD>
<TD colSpan="5">
<uc1:ucMnuEmpty id="UcMnuEmpty1"
runat="server"></uc1:ucMnuEmpty></TD>
<TD rowSpan="5"><IMG height="387" src="images/spSite_13.jpg"
width="9"></TD>
<TD><IMG height="22" src="images/spacer.gif" width="1"></TD>
</TR>
<TR>
<TD rowSpan="4"><IMG height="365" src="images/spSite_14.jpg"
width="19"></TD>
<TD vAlign="top" align="left" colSpan="4" rowSpan="2">
<TABLE id="Table1" style="BACKGROUND-ATTACHMENT: scroll;
BACKGROUND-IMAGE: url(images/Content.jpg); BACKGROUND-REPEAT: no-repeat;
BACKGROUND-COLOR: transparent"
height="343" cellSpacing="0" cellPadding="0" width="536"
align="left" border="0">
<TR>
<TD vAlign="top" align="center">
<H1>Login To sp.com</H1>
<TABLE id="Table2" height="280" cellSpacing="0" cellPadding="1"
width="509" align="center"
border="1">
<TR>
<TD vAlign="middle" align="center" bgColor="#f6fbe7">
<P> </P>
<P> </P>
<TABLE id="Table3" style="WIDTH: 300px; HEIGHT: 96px"
cellSpacing="0" cellPadding="0" width="300"
border="0">
<TR>
<TD>Username</TD>
<TD>
<asp:TextBox id="txtUser" runat="server"></asp:TextBox></TD>
</TR>
<TR>
<TD>Password</TD>
<TD>
<asp:TextBox id="txtPassword" runat="server"
TextMode="Password"></asp:TextBox></TD>
</TR>
<TR>
<TD></TD>
<TD>
<asp:Button id="cmdLogin" runat="server"
Text="Login"></asp:Button></TD>
</TR>
</TABLE>
<asp:Label id="lblBadLogin" runat="server" ForeColor="Red"
Font-Bold="True" Visible="False">Incorrect username /
password!</asp:Label><BR>
<asp:HyperLink id="HyperLink1" runat="server"
NavigateUrl="UserNew.aspx">New Users Sign Up Here</asp:HyperLink></TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
</TD>
<TD><IMG height="73" src="images/spacer.gif" width="1"></TD>
</TR>
<TR>
<TD vAlign="top" align="left" rowSpan="2">
<uc1:ucMnuNavEmpty id="UcMnuNavEmpty1"
runat="server"></uc1:ucMnuNavEmpty></TD>
<TD><IMG height="270" src="images/spacer.gif" width="1"></TD>
</TR>
<TR>
<TD colSpan="4" rowSpan="2"><IMG height="22"
src="images/spSite_17.jpg" width="536"></TD>
<TD><IMG height="12" src="images/spacer.gif" width="1"></TD>
</TR>
<TR>
<TD><IMG height="10" src="images/spSite_18.jpg" width="117"></TD>
<TD><IMG height="10" src="images/spacer.gif" width="1"></TD>
</TR>
</TABLE>
</DIV>
<!-- End ImageReady Slices --></FORM>
</body>
</HTML>
error. Any ideas?
***********
A page can have only one server-side Form tag.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.
Exception Details: System.Web.HttpException: A page can have only one
server-side Form tag.
*************
Here's my html:
<%@ Register TagPrefix="uc1" TagName="ucMnuNavEmpty"
Src="ucMnuNavEmpty.ascx" %>
<%@ Register TagPrefix="uc1" TagName="ucMnuEmpty" Src="ucMnuEmpty.ascx" %>
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="Login.aspx.vb"
Inherits="sp.Login"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>Login</title>
<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema"
content="http://schemas.microsoft.com/intellisense/ie5">
<LINK href="sp.css" type="text/css" rel="stylesheet">
</HEAD>
<body leftMargin="0" topMargin="0" rightMargin="0">
<FORM id="Form1" method="post" runat="server"> <!-- ImageReady Slices
(spSite.psd) -->
<P></P>
<DIV align="center">
<TABLE id="Table4" cellSpacing="0" cellPadding="0" width="700"
align="center" border="0">
<TR>
<TD><IMG height="1" src="images/spacer.gif" width="10"></TD>
<TD><IMG height="1" src="images/spacer.gif" width="117"></TD>
<TD><IMG height="1" src="images/spacer.gif" width="19"></TD>
<TD><IMG height="1" src="images/spacer.gif" width="38"></TD>
<TD><IMG height="1" src="images/spacer.gif" width="314"></TD>
<TD><IMG height="1" src="images/spacer.gif" width="3"></TD>
<TD><IMG height="1" src="images/spacer.gif" width="181"></TD>
<TD><IMG height="1" src="images/spacer.gif" width="9"></TD>
<TD><IMG height="1" src="images/spacer.gif" width="9"></TD>
<TD></TD>
</TR>
<TR>
<TD colSpan="9"><IMG height="9" src="images/spSite_01.jpg"
width="700"></TD>
<TD><IMG height="9" src="images/spacer.gif" width="1"></TD>
</TR>
<TR>
<TD rowSpan="9"><IMG height="491" src="images/spSite_02.jpg"
width="10"></TD>
<TD colSpan="3" rowSpan="2"><IMG height="25"
src="images/HeaderLeft.jpg" width="174"></TD>
<TD rowSpan="3"><A href="http://www.sp.com"><IMG height="26"
alt="Stroke Play Homepage" src="images/spWord.jpg" width="314"
border="0"></A></TD>
<TD rowSpan="4"><IMG height="104" src="images/spSite_05.jpg"
width="3"></TD>
<TD colSpan="2"><IMG height="24" src="images/HeaderRight.jpg"
width="190"></TD>
<TD rowSpan="9"><IMG height="491" src="images/spSite_07.jpg"
width="9"></TD>
<TD><IMG height="24" src="images/spacer.gif" width="1"></TD>
</TR>
<TR>
<TD colSpan="2" rowSpan="3"><IMG height="80"
src="images/spSite_08.jpg" width="190"></TD>
<TD><IMG height="1" src="images/spacer.gif" width="1"></TD>
</TR>
<TR>
<TD colSpan="3" rowSpan="2"><IMG height="79"
src="images/spSite_09.jpg" width="174"></TD>
<TD><IMG height="1" src="images/spacer.gif" width="1"></TD>
</TR>
<TR>
<TD><IMG height="78" src="images/spSite_10.jpg" width="314"></TD>
<TD><IMG height="78" src="images/spacer.gif" width="1"></TD>
</TR>
<TR>
<TD rowSpan="2"><IMG height="95" src="images/spSite_11.jpg"
width="117"></TD>
<TD colSpan="5">
<uc1:ucMnuEmpty id="UcMnuEmpty1"
runat="server"></uc1:ucMnuEmpty></TD>
<TD rowSpan="5"><IMG height="387" src="images/spSite_13.jpg"
width="9"></TD>
<TD><IMG height="22" src="images/spacer.gif" width="1"></TD>
</TR>
<TR>
<TD rowSpan="4"><IMG height="365" src="images/spSite_14.jpg"
width="19"></TD>
<TD vAlign="top" align="left" colSpan="4" rowSpan="2">
<TABLE id="Table1" style="BACKGROUND-ATTACHMENT: scroll;
BACKGROUND-IMAGE: url(images/Content.jpg); BACKGROUND-REPEAT: no-repeat;
BACKGROUND-COLOR: transparent"
height="343" cellSpacing="0" cellPadding="0" width="536"
align="left" border="0">
<TR>
<TD vAlign="top" align="center">
<H1>Login To sp.com</H1>
<TABLE id="Table2" height="280" cellSpacing="0" cellPadding="1"
width="509" align="center"
border="1">
<TR>
<TD vAlign="middle" align="center" bgColor="#f6fbe7">
<P> </P>
<P> </P>
<TABLE id="Table3" style="WIDTH: 300px; HEIGHT: 96px"
cellSpacing="0" cellPadding="0" width="300"
border="0">
<TR>
<TD>Username</TD>
<TD>
<asp:TextBox id="txtUser" runat="server"></asp:TextBox></TD>
</TR>
<TR>
<TD>Password</TD>
<TD>
<asp:TextBox id="txtPassword" runat="server"
TextMode="Password"></asp:TextBox></TD>
</TR>
<TR>
<TD></TD>
<TD>
<asp:Button id="cmdLogin" runat="server"
Text="Login"></asp:Button></TD>
</TR>
</TABLE>
<asp:Label id="lblBadLogin" runat="server" ForeColor="Red"
Font-Bold="True" Visible="False">Incorrect username /
password!</asp:Label><BR>
<asp:HyperLink id="HyperLink1" runat="server"
NavigateUrl="UserNew.aspx">New Users Sign Up Here</asp:HyperLink></TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
</TD>
<TD><IMG height="73" src="images/spacer.gif" width="1"></TD>
</TR>
<TR>
<TD vAlign="top" align="left" rowSpan="2">
<uc1:ucMnuNavEmpty id="UcMnuNavEmpty1"
runat="server"></uc1:ucMnuNavEmpty></TD>
<TD><IMG height="270" src="images/spacer.gif" width="1"></TD>
</TR>
<TR>
<TD colSpan="4" rowSpan="2"><IMG height="22"
src="images/spSite_17.jpg" width="536"></TD>
<TD><IMG height="12" src="images/spacer.gif" width="1"></TD>
</TR>
<TR>
<TD><IMG height="10" src="images/spSite_18.jpg" width="117"></TD>
<TD><IMG height="10" src="images/spacer.gif" width="1"></TD>
</TR>
</TABLE>
</DIV>
<!-- End ImageReady Slices --></FORM>
</body>
</HTML>