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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • VB Programmer

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

    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

    #2
    Re: Error w/user control &quot;could not reformat...&quo t;

    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="QCD ata.aspx.vb"
    Inherits="DMSI. QCData"%>
    <%@ Register TagPrefix="uc1" TagName="_Heade r" Src="_Header.as cx" %>
    <%@ Register TagPrefix="uc1" TagName="_Navig ation" Src="_Navigatio n.ascx" %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML>
    <HEAD>
    <title>QCData </title>
    <meta name="GENERATOR " content="Micros oft Visual Studio .NET 7.1">
    <meta name="CODE_LANG UAGE" content="Visual Basic .NET 7.1">
    <meta name="vs_defaul tClientScript" content="JavaSc ript">
    <meta name="vs_target Schema"
    content="http://schemas.microso ft.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:_Navigatio n 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:u0dVmvHhEH A.1652@TK2MSFTN GP09.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]


    Comment

    • VB Programmer

      #3
      Re: Error w/user control &quot;could not reformat...&quo t;

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

      "VB Programmer" <Dont*NoSpam-Please*@jEmail. com> wrote in message
      news:eGIWGAJhEH A.704@TK2MSFTNG P09.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="QCD ata.aspx.vb"
      > Inherits="DMSI. QCData"%>
      > <%@ Register TagPrefix="uc1" TagName="_Heade r" Src="_Header.as cx" %>
      > <%@ Register TagPrefix="uc1" TagName="_Navig ation" Src="_Navigatio n.ascx"[/color]
      %>[color=blue]
      > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
      > <HTML>
      > <HEAD>
      > <title>QCData </title>
      > <meta name="GENERATOR " content="Micros oft Visual Studio .NET 7.1">
      > <meta name="CODE_LANG UAGE" content="Visual Basic .NET 7.1">
      > <meta name="vs_defaul tClientScript" content="JavaSc ript">
      > <meta name="vs_target Schema"
      > content="http://schemas.microso ft.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:_Navigatio n 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:u0dVmvHhEH A.1652@TK2MSFTN GP09.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]


      Comment

      Working...