Error w/user control "could not reformat..."

V

VB Programmer

I created a simple user control and placed it on another page. Often I get
this error:

"Could not reformat the document due to line 27. The original format was
restored."

Line 27 in the HTML is this:
<uc1:_Header id=_Header1 runat="server"></uc1:_Header></TD></TR>

Any ideas?

Thanks.
 
V

VB Programmer

Are you allowed to have 2 user ctrls with the same tagprefix? By default it
made them both "uc1".

Here's the HTML:

<%@ Page Language="vb" AutoEventWireup="false" Codebehind="QCData.aspx.vb"
Inherits="DMSI.QCData"%>
<%@ Register TagPrefix="uc1" TagName="_Header" Src="_Header.ascx" %>
<%@ Register TagPrefix="uc1" TagName="_Navigation" Src="_Navigation.ascx" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>QCData</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">
</HEAD>
<body>
<form id="Form1" method="post" runat="server">
<P align="center">
<TABLE id="Table1" style="WIDTH: 779px; HEIGHT: 768px" cellSpacing="0"
cellPadding="0"
width="779" border="0">
<TR>
<TD vAlign="top" align="center" colSpan="1" rowSpan="2">
<TABLE id="Table2" style="WIDTH: 779px; HEIGHT: 752px"
cellSpacing="0" cellPadding="0"
width="779" border="0">
</TABLE>
<TABLE id="Table3" style="WIDTH: 779px; HEIGHT: 768px"
cellSpacing="0" cellPadding="0"
width="779" border="0">
<TR>
<TD style="HEIGHT: 4px">
<uc1:_Header id=_Header1 runat="server"></uc1:_Header></TD>
</TR>
<TR>
<TD style="HEIGHT: 149px" vAlign="top" align="center">
<TABLE id="Table4" style="WIDTH: 779px; HEIGHT: 702px"
cellSpacing="0" cellPadding="0"
width="779" border="0">
<TR>
<TD style="WIDTH: 52px" vAlign="top" align="left">
<uc1:_Navigation id=_Navigation1 runat="server"></uc1:_Navigation></TD>
<TD></TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
</P>
</form>
</body>
</HTML>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top