VS DEsigner Moves HTML comments?

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default VS DEsigner Moves HTML comments?

    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 Guest

  2. Similar Questions and Discussions

    1. Disable Options>Import Comments in Comments Pane
      A customer asked me to replace the logic of the Comments>Import Comments menu item. I can easily find and replace this menu item with the name...
    2. VS 2005 intellisense for complex properties in the XML/HTML designer
      Hi, I am using a web custom control with Visual Studio 2005 and I have a property called : public DropDownList DropDown {
    3. How do I get a custom Control Designer to write to the HTML of my control?
      I have created a custom 'Control Designer' that provids a popup dialog for entering more complex properties (such as property builder in the data...
    4. What HTML Surrounds Our HTML In The Designer?
      I've been working with a custom control, which I've _finally_ gotten to look right both in the designer and at run-time. Except for one little...
    5. Offer tips, comments on this code (generates html to index image files)
      Please offer suggestions, comments, and tips on the following perl code. I had a need to quickly generate an html document indexing and displaying...
  3. #2

    Default Re: VS DEsigner Moves HTML comments?

    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)" <NoSpamMgbworld@comcast.netRemuvThis> wrote in
    message news:eKNRpncXDHA.2424@TK2MSFTNGP12.phx.gbl...
    > 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" <dmehrtens@rightreasontech.com> wrote in message
    > news:e0nF0VcXDHA.1872@TK2MSFTNGP12.phx.gbl...
    > > 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 Guest

  4. #3

    Default Re: VS DEsigner Moves HTML comments?

    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! - [url]www.microsoft.com/security[/url]
    This posting is provided "AS IS" with no warranties, and confers no rights.

    --------------------
    !From: "Dave Mehrtens" <dmehrtens@rightreasontech.com>
    !References: <e0nF0VcXDHA.1872@TK2MSFTNGP12.phx.gbl> <eKNRpncXDHA.2424@TK2MSFTNGP12.phx.gbl>
    <uCymoOdXDHA.1384@TK2MSFTNGP10.phx.gbl>
    !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: <#GwzslCYDHA.2032@TK2MSFTNGP10.phx.gbl>
    !Newsgroups: microsoft.public.dotnet.framework.aspnet
    !NNTP-Posting-Host: rightreasontech05.admin.esu.edu 206.225.102.55
    !Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP10.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" <dmehrtens@rightreasontech.com> wrote in message
    !news:uCymoOdXDHA.1384@TK2MSFTNGP10.phx.gbl...
    !> 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)" <NoSpamMgbworld@comcast.netRemuvThis> wrote
    !in
    !> message news:eKNRpncXDHA.2424@TK2MSFTNGP12.phx.gbl...
    !> > 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" <dmehrtens@rightreasontech.com> wrote in message
    !> > news:e0nF0VcXDHA.1872@TK2MSFTNGP12.phx.gbl...
    !> > > 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] Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139