VS DEsigner Moves HTML comments?

D

Dave Mehrtens

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
 
D

Dave Mehrtens

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
 
Y

Yan-Hong Huang[MSFT]

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" <[email protected]>
!References: <[email protected]> <[email protected]>
<[email protected]>
!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: <#[email protected]>
!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
!
!!> 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
!>
!in
!> message !> > 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!
!> >
!>
!****************************************************************************
!> > ****
!> > !> > > 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
!> > >
!> > >
!> >
!> >
!>
!>
!
!
!
 
J

John Soulis [MSFT]

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.
 

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

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top