VS DEsigner Moves HTML comments?

Discussion in 'ASP .Net' started by Dave Mehrtens, Aug 8, 2003.

  1. We are attempting to use both Dreamweaver and .Net to edit aspx files.

    Dreamweaver uses HTML comments to embed proprietary information for it's
    editor.

    However, when we load these pages into VS.Net, the VS.Net designer will move
    those commented lines such that Dreamweaver will not recongnize them
    anymore.

    For example - From Dreamweaver
    </TABLE><div id="logoutLayer" style="position:absolute; width:76px;
    height:14px; z-index:13; left: 14px; top: 135px; visibility: visible;"><font
    size="+1"><a href="../LoginGUI/logout.aspx"><img
    src="../images/logoutButton.gif" width="76" height="14"
    border=0></a></font></div>
    </BODY>
    <!-- InstanceEnd --></HTML>


    After VS.Net
    </TABLE>
    <div id="logoutLayer" style="Z-INDEX:13; LEFT:14px; VISIBILITY:visible;
    WIDTH:76px; POSITION:absolute; TOP:135px; HEIGHT:14px"><font size="+1"><a
    href="../LoginGUI/logout.aspx"><img src="../images/logoutButton.gif"
    width="76" height="14" border="0"></a></font></div>
    <!-- InstanceEnd -->
    </BODY>
    </HTML>

    The "InstanceEnd comment is moved above the </BODY> tag instead of below it.

    Any reason for this?

    Dave
    Dave Mehrtens, Aug 8, 2003
    #1
    1. Advertising

  2. All I am referring to are comments. I am not familiar with the details of
    the schema to say what is correct or not, but wouldn't you be able to place
    comments anywhere you want?

    Dave

    "Cowboy (Gregory A. Beamer)" <> wrote in
    message news:...
    > While I know this is not any help, the VS.NET implementation is more
    > correct, according to the schema. I am not sure there is anything you can

    do
    > about this, but I would look at the options to see if there is an option

    for
    > validation of a page to a schema. If there is a way to turn off the
    > correction, it would be here.
    >
    > --
    > Gregory A. Beamer
    > MVP; MCP: +I, SE, SD, DBA
    > Author: ADO.NET and XML: ASP.NET on the Edge
    >
    >

    ****************************************************************************
    > ****
    > Think Outside the Box!
    >

    ****************************************************************************
    > ****
    > "Dave Mehrtens" <> wrote in message
    > news:...
    > > We are attempting to use both Dreamweaver and .Net to edit aspx files.
    > >
    > > Dreamweaver uses HTML comments to embed proprietary information for it's
    > > editor.
    > >
    > > However, when we load these pages into VS.Net, the VS.Net designer will

    > move
    > > those commented lines such that Dreamweaver will not recongnize them
    > > anymore.
    > >
    > > For example - From Dreamweaver
    > > </TABLE><div id="logoutLayer" style="position:absolute; width:76px;
    > > height:14px; z-index:13; left: 14px; top: 135px; visibility:

    > visible;"><font
    > > size="+1"><a href="../LoginGUI/logout.aspx"><img
    > > src="../images/logoutButton.gif" width="76" height="14"
    > > border=0></a></font></div>
    > > </BODY>
    > > <!-- InstanceEnd --></HTML>
    > >
    > >
    > > After VS.Net
    > > </TABLE>
    > > <div id="logoutLayer" style="Z-INDEX:13; LEFT:14px;

    VISIBILITY:visible;
    > > WIDTH:76px; POSITION:absolute; TOP:135px; HEIGHT:14px"><font

    size="+1"><a
    > > href="../LoginGUI/logout.aspx"><img src="../images/logoutButton.gif"
    > > width="76" height="14" border="0"></a></font></div>
    > > <!-- InstanceEnd -->
    > > </BODY>
    > > </HTML>
    > >
    > > The "InstanceEnd comment is moved above the </BODY> tag instead of below

    > it.
    > >
    > > Any reason for this?
    > >
    > > Dave
    > >
    > >

    >
    >
    Dave Mehrtens, Aug 8, 2003
    #2
    1. Advertising

  3. Hello Dave,

    Sorry for the late response. We are looking into it and will reply you with our findings here. Thanks very much.

    Best regards,
    Yanhong Huang
    Microsoft Online Partner Support

    Get Secure! - www.microsoft.com/security
    This posting is provided "AS IS" with no warranties, and confers no rights.

    --------------------
    !From: "Dave Mehrtens" <>
    !References: <> <>
    <>
    !Subject: Re: VS DEsigner Moves HTML comments?
    !Date: Mon, 11 Aug 2003 12:54:36 -0400
    !Lines: 92
    !X-Priority: 3
    !X-MSMail-Priority: Normal
    !X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
    !X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
    !Message-ID: <#>
    !Newsgroups: microsoft.public.dotnet.framework.aspnet
    !NNTP-Posting-Host: rightreasontech05.admin.esu.edu 206.225.102.55
    !Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP10.phx.gbl
    !Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:166834
    !X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
    !
    !Microsoft, I would appreciate your comments on why the comments are moved in
    !VS.NET.
    !
    !DAve
    !
    !"Dave Mehrtens" <> wrote in message
    !news:...
    !> All I am referring to are comments. I am not familiar with the details of
    !> the schema to say what is correct or not, but wouldn't you be able to
    !place
    !> comments anywhere you want?
    !>
    !> Dave
    !>
    !> "Cowboy (Gregory A. Beamer)" <> wrote
    !in
    !> message news:...
    !> > While I know this is not any help, the VS.NET implementation is more
    !> > correct, according to the schema. I am not sure there is anything you
    !can
    !> do
    !> > about this, but I would look at the options to see if there is an option
    !> for
    !> > validation of a page to a schema. If there is a way to turn off the
    !> > correction, it would be here.
    !> >
    !> > --
    !> > Gregory A. Beamer
    !> > MVP; MCP: +I, SE, SD, DBA
    !> > Author: ADO.NET and XML: ASP.NET on the Edge
    !> >
    !> >
    !>
    !****************************************************************************
    !> > ****
    !> > Think Outside the Box!
    !> >
    !>
    !****************************************************************************
    !> > ****
    !> > "Dave Mehrtens" <> wrote in message
    !> > news:...
    !> > > We are attempting to use both Dreamweaver and .Net to edit aspx files.
    !> > >
    !> > > Dreamweaver uses HTML comments to embed proprietary information for
    !it's
    !> > > editor.
    !> > >
    !> > > However, when we load these pages into VS.Net, the VS.Net designer
    !will
    !> > move
    !> > > those commented lines such that Dreamweaver will not recongnize them
    !> > > anymore.
    !> > >
    !> > > For example - From Dreamweaver
    !> > > </TABLE><div id="logoutLayer" style="position:absolute; width:76px;
    !> > > height:14px; z-index:13; left: 14px; top: 135px; visibility:
    !> > visible;"><font
    !> > > size="+1"><a href="../LoginGUI/logout.aspx"><img
    !> > > src="../images/logoutButton.gif" width="76" height="14"
    !> > > border=0></a></font></div>
    !> > > </BODY>
    !> > > <!-- InstanceEnd --></HTML>
    !> > >
    !> > >
    !> > > After VS.Net
    !> > > </TABLE>
    !> > > <div id="logoutLayer" style="Z-INDEX:13; LEFT:14px;
    !> VISIBILITY:visible;
    !> > > WIDTH:76px; POSITION:absolute; TOP:135px; HEIGHT:14px"><font
    !> size="+1"><a
    !> > > href="../LoginGUI/logout.aspx"><img src="../images/logoutButton.gif"
    !> > > width="76" height="14" border="0"></a></font></div>
    !> > > <!-- InstanceEnd -->
    !> > > </BODY>
    !> > > </HTML>
    !> > >
    !> > > The "InstanceEnd comment is moved above the </BODY> tag instead of
    !below
    !> > it.
    !> > >
    !> > > Any reason for this?
    !> > >
    !> > > Dave
    !> > >
    !> > >
    !> >
    !> >
    !>
    !>
    !
    !
    !
    Yan-Hong Huang[MSFT], Aug 12, 2003
    #3
  4. Hi Dave,
    This is a known issue with the Visual Studio .NET designer. Currently the
    only work around is to manually move the comment tags back to the spot
    above the HTML tag just before saving and closing the aspx file.

    I appoligize for the inconveinence that this will cause you.

    Regards, John Soulis
    Microsoft, ASP.NET

    This posting is provided "AS IS", with no warranties, and confers no rights.
    John Soulis [MSFT], Aug 13, 2003
    #4
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Simon Harvey
    Replies:
    7
    Views:
    383
    The Guru
    Dec 28, 2004
  2. Mark
    Replies:
    1
    Views:
    532
    Andy Fish
    Nov 2, 2004
  3. Replies:
    0
    Views:
    1,091
  4. Monk
    Replies:
    10
    Views:
    1,433
    Michael Wojcik
    Apr 20, 2005
  5. Replies:
    4
    Views:
    572
    Dr John Stockton
    Jun 3, 2006
Loading...

Share This Page