473,405 Members | 2,176 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

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
Nov 17 '05 #1
3 1223
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)" <No************@comcast.netRemuvThis> wrote in
message news:eK**************@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" <dm*******@rightreasontech.com> wrote in message
news:e0**************@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


Nov 17 '05 #2
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" <dm*******@rightreasontech.com>
!References: <e0**************@TK2MSFTNGP12.phx.gbl> <eK**************@TK2MSFTNGP12.phx.gbl>
<uC**************@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: <#G**************@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" <dm*******@rightreasontech.com> wrote in message
!news:uC**************@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)" <No************@comcast.netRemuvThis> wrote
!in
!> message news:eK**************@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" <dm*******@rightreasontech.com> wrote in message
!> > news:e0**************@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
!> > >
!> > >
!> >
!> >
!>
!>
!
!
!
Nov 17 '05 #3
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.

Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Michel | last post by:
I have an html page which, thanks to some javascript, allows to move pieces on a chessboard. I can't find how to reflect the moves in a list displayed by the same page. To understand what I'm...
19
by: Dales | last post by:
I have a custom control that builds what we refer to as "Formlets" around some content in a page. These are basically content "wrapper" sections that are tables that have a colored header and...
7
by: Simon Harvey | last post by:
Hi everyone, I'm having a frustrating problem and I don't know how to fix it without totally redoing a very complicated couple of pages on my site. I really hope some kind soul can help me :-) ...
4
by: Steve B. | last post by:
Hi As we ship some controls with one of our application that targets web designers, we want to add items in the toolbox of the two products. With VS 2005, it is quite easy, but what about this...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.