S
serge calderara
Dear all
I have build a simple Web user control, that I have draged on a web form.
When executed my applciation I get an error mesage saying :
"A page can have only one server-side Form tag"
What does that means?
The HTML code has been generated automatically by dragging the control, I
could not find any error.
Here is the produce code :
===============================
<%@ Register TagPrefix="uc1" TagName="LastHistory" Src="LastHistory.ascx" %>
<%@ Page Language="vb" AutoEventWireup="false"
Codebehind="WebLeftMargin.aspx.vb" Inherits="ServiceClient.WebLeftMargin"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>WebLeftMargin</title>
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
<meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5"
name="vs_targetSchema">
</HEAD>
<body bgColor="#ffcc66">
<form id="Form1" method="post" runat="server">
</form>
<uc1:lasthistory id="LastHistory1" runat="server"></uc1:lasthistory>
</body>
</HTML>
============================================
Any help will be appreciate
Regards
Serge
I have build a simple Web user control, that I have draged on a web form.
When executed my applciation I get an error mesage saying :
"A page can have only one server-side Form tag"
What does that means?
The HTML code has been generated automatically by dragging the control, I
could not find any error.
Here is the produce code :
===============================
<%@ Register TagPrefix="uc1" TagName="LastHistory" Src="LastHistory.ascx" %>
<%@ Page Language="vb" AutoEventWireup="false"
Codebehind="WebLeftMargin.aspx.vb" Inherits="ServiceClient.WebLeftMargin"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>WebLeftMargin</title>
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
<meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5"
name="vs_targetSchema">
</HEAD>
<body bgColor="#ffcc66">
<form id="Form1" method="post" runat="server">
</form>
<uc1:lasthistory id="LastHistory1" runat="server"></uc1:lasthistory>
</body>
</HTML>
============================================
Any help will be appreciate
Regards
Serge