Connecting Tech Pros Worldwide Forums | Help | Site Map

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

VB Programmer
Guest
 
Posts: n/a
#1: Nov 18 '05
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.



VB Programmer
Guest
 
Posts: n/a
#2: Nov 18 '05

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


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>

"VB Programmer" <Dont*NoSpam-Please*@jEmail.com> wrote in message
news:u0dVmvHhEHA.1652@TK2MSFTNGP09.phx.gbl...[color=blue]
> I created a simple user control and placed it on another page. Often I[/color]
get[color=blue]
> 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.
>
>[/color]


VB Programmer
Guest
 
Posts: n/a
#3: Nov 18 '05

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


Figured it out. It was the underscore in the name.

"VB Programmer" <Dont*NoSpam-Please*@jEmail.com> wrote in message
news:eGIWGAJhEHA.704@TK2MSFTNGP09.phx.gbl...[color=blue]
> Are you allowed to have 2 user ctrls with the same tagprefix? By default[/color]
it[color=blue]
> 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"[/color]
%>[color=blue]
> <!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>
>
> "VB Programmer" <Dont*NoSpam-Please*@jEmail.com> wrote in message
> news:u0dVmvHhEHA.1652@TK2MSFTNGP09.phx.gbl...[color=green]
> > I created a simple user control and placed it on another page. Often I[/color]
> get[color=green]
> > this error:
> >
> > "Could not reformat the document due to line 27. The original format[/color][/color]
was[color=blue][color=green]
> > restored."
> >
> > Line 27 in the HTML is this:
> > <uc1:_Header id=_Header1 runat="server"></uc1:_Header></TD></TR>
> >
> > Any ideas?
> >
> > Thanks.
> >
> >[/color]
>
>[/color]


Closed Thread