Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > VS DEsigner Moves HTML comments?

Reply
Thread Tools

VS DEsigner Moves HTML comments?

 
 
Dave Mehrtens
Guest
Posts: n/a
 
      08-08-2003
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


 
Reply With Quote
 
 
 
 
Dave Mehrtens
Guest
Posts: n/a
 
      08-08-2003
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)" <(E-Mail Removed)> wrote in
message news:(E-Mail Removed)...
> 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" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > 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
> >
> >

>
>



 
Reply With Quote
 
 
 
 
Yan-Hong Huang[MSFT]
Guest
Posts: n/a
 
      08-12-2003
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" <(E-Mail Removed)>
!References: <(E-Mail Removed)> <(E-Mail Removed)>
<(E-Mail Removed)>
!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: <#(E-Mail Removed)>
!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" <(E-Mail Removed)> wrote in message
!news:(E-Mail Removed)...
!> 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)" <(E-Mail Removed)> wrote
!in
!> message news:(E-Mail Removed)...
!> > 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" <(E-Mail Removed)> wrote in message
!> > news:(E-Mail Removed)...
!> > > 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
!> > >
!> > >
!> >
!> >
!>
!>
!
!
!


 
Reply With Quote
 
John Soulis [MSFT]
Guest
Posts: n/a
 
      08-13-2003
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.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Designer Property Serialization -- Sycning inner properties to designer property window Alexander Higgins ASP .Net Building Controls 3 07-30-2007 09:09 PM
Designer Property Serialization -- Sycning inner properties to designer property window Alexander Higgins ASP .Net Web Controls 0 07-21-2007 12:58 AM
Sharepoint Designer/ Expression Web Designer : adding item in toolbox ? Steve B. ASP .Net 4 06-01-2007 04:29 AM
page directive moves each time I view html Mark ASP .Net 1 11-02-2004 06:23 PM
Help, mouse moves, sticks for a few seconds, then moves... what's up? unbroken Computer Information 8 01-19-2004 04:18 AM



Advertisments