473,397 Members | 2,099 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,397 software developers and data experts.

Stop VS.Net from reformatting my aspx pages

Hello All,

I am developing a page which has a complex layout. This layout cannot be
made using VS alone, so I have to go into the html view and edit the
html myself.

The problem is that everytime I save the file, (or add/remove any
component to the page) VS.Net reformats and re-edits the whole page.

I find this very irrating because VS.Net totally disorganizes my code.
It removes all the quotes so align='center' becomes align=center

<td>
Hello
<td>

becomes
<td>
Hello</td>

I capitalizes / decapitalizes strings arbitrarily.

sometimes it also adds some extra </tr> to my code making my layout go
haywire.

I want to know if there is someway I can tell it to stop reformatting
and re-editing my code.

regards,
Abhishek.
Nov 18 '05 #1
6 2167
HI Abhishek,

Have you tried changing the options in Visual Studio .NET so that it
doesn't reformat code? If you've already done that and the problem
remains, I'm afraid that's all that you can do. The story here is not a
very good one. We are dependent upon MSHTML, the HTML rendering engine we
use in VS.NET. Unfortunately, MSHTML sometimes doesn't do a good job of
preserving your code formatting exactly the way you're formatted it.

The good news is that we've worked extremely hard to address this in
Whidbey, the next version of Visual Studio .NET.

Jim Cheshire, MCSE, MCSD [MSFT]
ASP.NET
Developer Support
ja******@online.microsoft.com

This post is provided as-is with no warranties and confers no rights.
--------------------
Date: Mon, 09 Feb 2004 17:54:33 +0530
From: Abhishek Srivastava <ab*****************@nospam.net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.6b) Gecko/20031208X-Accept-Language: en-us, en
MIME-Version: 1.0
Subject: Stop VS.Net from reformatting my aspx pages
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Message-ID: <#g**************@TK2MSFTNGP10.phx.gbl>
Newsgroups: microsoft.public.vstudio.development,microsoft.pub lic.dotnet.framework.aspne
tNNTP-Posting-Host: atlrel2.hp.com 156.153.255.202
Lines: 1
Path: cpmsftngxa07.phx.gbl!cpmsftngxa06.phx.gbl!TK2MSFTN GP08.phx.gbl!TK2MSFTNGP10.
phx.gblXref: cpmsftngxa07.phx.gbl microsoft.public.dotnet.framework.aspnet:208534 microsoft.public.vstudio.development:4309X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet

Hello All,

I am developing a page which has a complex layout. This layout cannot be
made using VS alone, so I have to go into the html view and edit the
html myself.

The problem is that everytime I save the file, (or add/remove any
component to the page) VS.Net reformats and re-edits the whole page.

I find this very irrating because VS.Net totally disorganizes my code.
It removes all the quotes so align='center' becomes align=center

<td>
Hello
<td>

becomes
<td>
Hello</td>

I capitalizes / decapitalizes strings arbitrarily.

sometimes it also adds some extra </tr> to my code making my layout go
haywire.

I want to know if there is someway I can tell it to stop reformatting
and re-editing my code.

regards,
Abhishek.


Nov 18 '05 #2
I think its funny, I posted a question similar to this about two months ago
and never got a response. You would think this YES un-turn-off-able
"feature" would cause a pretty big outroar, but very few people mention it.
I think it's all a conspiracy, Microsoft wants to standardize HTML output,
and our monitors aren't compatible with the mind probe they are using to
control everyone else's brain to just accept the badly formatted tags. No
wait, I've been watching too much TV, actually I heard once there should be
an option to turn this off in the next release. I know that doesn't provide
too much comfort to you now, you can do what I had to do... live with it.

"Abhishek Srivastava" <ab*****************@nospam.net> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hello All,

I am developing a page which has a complex layout. This layout cannot be
made using VS alone, so I have to go into the html view and edit the
html myself.

The problem is that everytime I save the file, (or add/remove any
component to the page) VS.Net reformats and re-edits the whole page.

I find this very irrating because VS.Net totally disorganizes my code.
It removes all the quotes so align='center' becomes align=center

<td>
Hello
<td>

becomes
<td>
Hello</td>

I capitalizes / decapitalizes strings arbitrarily.

sometimes it also adds some extra </tr> to my code making my layout go
haywire.

I want to know if there is someway I can tell it to stop reformatting
and re-editing my code.

regards,
Abhishek.

Nov 18 '05 #3
I think ASP.NET Web Matrix supports custom markup layout today (won't "fix"
personal styles). Info at
http://asp.net/webmatrix/default.asp...dex=4&tabId=46.

"Michael Ramey" <raterus@localhost> wrote in message
news:OA**************@TK2MSFTNGP11.phx.gbl...
I think its funny, I posted a question similar to this about two months ago and never got a response. You would think this YES un-turn-off-able
"feature" would cause a pretty big outroar, but very few people mention it. I think it's all a conspiracy, Microsoft wants to standardize HTML output,
and our monitors aren't compatible with the mind probe they are using to
control everyone else's brain to just accept the badly formatted tags. No
wait, I've been watching too much TV, actually I heard once there should be an option to turn this off in the next release. I know that doesn't provide too much comfort to you now, you can do what I had to do... live with it.

"Abhishek Srivastava" <ab*****************@nospam.net> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hello All,

I am developing a page which has a complex layout. This layout cannot be
made using VS alone, so I have to go into the html view and edit the
html myself.

The problem is that everytime I save the file, (or add/remove any
component to the page) VS.Net reformats and re-edits the whole page.

I find this very irrating because VS.Net totally disorganizes my code.
It removes all the quotes so align='center' becomes align=center

<td>
Hello
<td>

becomes
<td>
Hello</td>

I capitalizes / decapitalizes strings arbitrarily.

sometimes it also adds some extra </tr> to my code making my layout go
haywire.

I want to know if there is someway I can tell it to stop reformatting
and re-editing my code.

regards,
Abhishek.


Nov 18 '05 #4
I beautify my code. do proper indentation, close all tags. put every
attribute in quotes. And then savee the file.

And VS.Net goes and sh*ts all over it. Indentation is totally horrible,
All my <br/> become <br> align='center' becomes align=center. I hate its
html editor. (but for complex pages there is no other way but to go in
html mode and edit.)

I want to keep my html as well formed as possible. But VS.Net does
totally the opposite. Which is wierd because VS.Net boasts of XML
compatibility everywhere ... yet it will remove closed tags from my code??

I think this is a bug. Atleast programmers should be given a choice
whether they want to keep all tags closed (except some lage html things
like <input type'checkbox' selected>) and all attributes in quotes.

regards,
Abhishek.

Ed Kaim [MSFT] wrote:
I think ASP.NET Web Matrix supports custom markup layout today (won't "fix"
personal styles). Info at
http://asp.net/webmatrix/default.asp...dex=4&tabId=46.

"Michael Ramey" <raterus@localhost> wrote in message
news:OA**************@TK2MSFTNGP11.phx.gbl...
I think its funny, I posted a question similar to this about two months


ago
and never got a response. You would think this YES un-turn-off-able
"feature" would cause a pretty big outroar, but very few people mention


it.
I think it's all a conspiracy, Microsoft wants to standardize HTML output,
and our monitors aren't compatible with the mind probe they are using to
control everyone else's brain to just accept the badly formatted tags. No
wait, I've been watching too much TV, actually I heard once there should


be
an option to turn this off in the next release. I know that doesn't


provide
too much comfort to you now, you can do what I had to do... live with it.

"Abhishek Srivastava" <ab*****************@nospam.net> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl.. .
Hello All,

I am developing a page which has a complex layout. This layout cannot be
made using VS alone, so I have to go into the html view and edit the
html myself.

The problem is that everytime I save the file, (or add/remove any
component to the page) VS.Net reformats and re-edits the whole page.

I find this very irrating because VS.Net totally disorganizes my code.
It removes all the quotes so align='center' becomes align=center

<td>
Hello
<td>

becomes
<td>
Hello</td>

I capitalizes / decapitalizes strings arbitrarily.

sometimes it also adds some extra </tr> to my code making my layout go
haywire.

I want to know if there is someway I can tell it to stop reformatting
and re-editing my code.

regards,
Abhishek.



Nov 18 '05 #5
> The good news is that we've worked extremely hard to address this in
Whidbey, the next version of Visual Studio .NET.
That's really good news. When is the new edition coming out?

regards,
Abhishek.
Jim Cheshire [MSFT] wrote:
HI Abhishek,

Have you tried changing the options in Visual Studio .NET so that it
doesn't reformat code? If you've already done that and the problem
remains, I'm afraid that's all that you can do. The story here is not a
very good one. We are dependent upon MSHTML, the HTML rendering engine we
use in VS.NET. Unfortunately, MSHTML sometimes doesn't do a good job of
preserving your code formatting exactly the way you're formatted it.

The good news is that we've worked extremely hard to address this in
Whidbey, the next version of Visual Studio .NET.

Jim Cheshire, MCSE, MCSD [MSFT]
ASP.NET
Developer Support
ja******@online.microsoft.com

This post is provided as-is with no warranties and confers no rights.
--------------------
Date: Mon, 09 Feb 2004 17:54:33 +0530
From: Abhishek Srivastava <ab*****************@nospam.net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.6b)


Gecko/20031208
X-Accept-Language: en-us, en
MIME-Version: 1.0
Subject: Stop VS.Net from reformatting my aspx pages
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Message-ID: <#g**************@TK2MSFTNGP10.phx.gbl>
Newsgroups:


microsoft.public.vstudio.development,microsoft.pub lic.dotnet.framework.aspne
t
NNTP-Posting-Host: atlrel2.hp.com 156.153.255.202
Lines: 1
Path:


cpmsftngxa07.phx.gbl!cpmsftngxa06.phx.gbl!TK2MSFTN GP08.phx.gbl!TK2MSFTNGP10.
phx.gbl
Xref: cpmsftngxa07.phx.gbl microsoft.public.dotnet.framework.aspnet:208534


microsoft.public.vstudio.development:4309
X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet

Hello All,

I am developing a page which has a complex layout. This layout cannot be
made using VS alone, so I have to go into the html view and edit the
html myself.

The problem is that everytime I save the file, (or add/remove any
component to the page) VS.Net reformats and re-edits the whole page.

I find this very irrating because VS.Net totally disorganizes my code.
It removes all the quotes so align='center' becomes align=center

<td>
Hello
<td>

becomes
<td>
Hello</td>

I capitalizes / decapitalizes strings arbitrarily.

sometimes it also adds some extra </tr> to my code making my layout go
haywire.

I want to know if there is someway I can tell it to stop reformatting
and re-editing my code.

regards,
Abhishek.


Nov 18 '05 #6
Abhishek,

There is no hard date yet.

Jim Cheshire, MCSE, MCSD [MSFT]
ASP.NET
Developer Support
ja******@online.microsoft.com

This post is provided as-is with no warranties and confers no rights.

--------------------
Date: Tue, 10 Feb 2004 10:52:27 +0530
From: Abhishek Srivastava <ab*****************@nospam.net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.6b) Gecko/20031208X-Accept-Language: en-us, en
MIME-Version: 1.0
Subject: Re: Stop VS.Net from reformatting my aspx pages
References: <#g**************@TK2MSFTNGP10.phx.gbl> <RA**************@cpmsftngxa07.phx.gbl>In-Reply-To: <RA**************@cpmsftngxa07.phx.gbl>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Message-ID: <u7**************@TK2MSFTNGP10.phx.gbl>
Newsgroups: microsoft.public.dotnet.framework.aspnet
NNTP-Posting-Host: atlrel2.hp.com 156.153.255.202
Lines: 1
Path: cpmsftngxa07.phx.gbl!cpmsftngxa06.phx.gbl!TK2MSFTN GP08.phx.gbl!TK2MSFTNGP10.
phx.gblXref: cpmsftngxa07.phx.gbl microsoft.public.dotnet.framework.aspnet:208791
X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
The good news is that we've worked extremely hard to address this in
Whidbey, the next version of Visual Studio .NET.


That's really good news. When is the new edition coming out?

regards,
Abhishek.
Jim Cheshire [MSFT] wrote:
HI Abhishek,

Have you tried changing the options in Visual Studio .NET so that it
doesn't reformat code? If you've already done that and the problem
remains, I'm afraid that's all that you can do. The story here is not a
very good one. We are dependent upon MSHTML, the HTML rendering engine we use in VS.NET. Unfortunately, MSHTML sometimes doesn't do a good job of
preserving your code formatting exactly the way you're formatted it.

The good news is that we've worked extremely hard to address this in
Whidbey, the next version of Visual Studio .NET.

Jim Cheshire, MCSE, MCSD [MSFT]
ASP.NET
Developer Support
ja******@online.microsoft.com

This post is provided as-is with no warranties and confers no rights.
--------------------
Date: Mon, 09 Feb 2004 17:54:33 +0530
From: Abhishek Srivastava <ab*****************@nospam.net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.6b)


Gecko/20031208
X-Accept-Language: en-us, en
MIME-Version: 1.0
Subject: Stop VS.Net from reformatting my aspx pages
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Message-ID: <#g**************@TK2MSFTNGP10.phx.gbl>
Newsgroups:


microsoft.public.vstudio.development,microsoft.pub lic.dotnet.framework.aspne t
NNTP-Posting-Host: atlrel2.hp.com 156.153.255.202
Lines: 1
Path:


cpmsftngxa07.phx.gbl!cpmsftngxa06.phx.gbl!TK2MSFTN GP08.phx.gbl!TK2MSFTNGP10. phx.gbl
Xref: cpmsftngxa07.phx.gbl
microsoft.public.dotnet.framework.aspnet:208534
microsoft.public.vstudio.development:4309
X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet

Hello All,

I am developing a page which has a complex layout. This layout cannot be
made using VS alone, so I have to go into the html view and edit the
html myself.

The problem is that everytime I save the file, (or add/remove any
component to the page) VS.Net reformats and re-edits the whole page.

I find this very irrating because VS.Net totally disorganizes my code.
It removes all the quotes so align='center' becomes align=center

<td>
Hello
<td>

becomes
<td>
Hello</td>

I capitalizes / decapitalizes strings arbitrarily.

sometimes it also adds some extra </tr> to my code making my layout go
haywire.

I want to know if there is someway I can tell it to stop reformatting
and re-editing my code.

regards,
Abhishek.



Nov 18 '05 #7

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

Similar topics

21
by: Dave | last post by:
After following Microsofts admonition to reformat my system before doing a final compilation of my app I got many warnings/errors upon compiling an rtf file created in word. I used the Help...
4
by: Niel | last post by:
Hello friends, I think this issue has been posted before but i have not been able to get any solution that is why i am posting it again in detail as to what exactly is happneing in my case. Hope...
12
by: clintonG | last post by:
VS2005 2.0 Beta 2 noting I've posted (to no avail so far) to the somewhat deadzone at news://microsoft.public.vsnet.ide and am getting ants in my pants for some discussion about this issue. ...
3
by: Chris Lane | last post by:
Hi, This is super annoying FrontPage like behavior. Does anybody know how I can stop the Visual Studio.NET IDE from reformatting my HTML? Thank You
3
by: SenthilVel | last post by:
Hi All i do need to control my windows services using aspx pages. I used the System.ServiceProcess.ServiceController namespace .... this is working fine when i run my code in a windows...
9
by: Brian Lowe | last post by:
I'm using Visual Studio to build ASP.Net pages and I'm trying to be standards compliant by using XHTML. In my page I create valid XHTML such as: <ul> <li>first list item</li> <li>second list...
1
by: Alan Silver | last post by:
Hello, I am just experimenting with master pages, and am trying to add a content placeholder in the <head> section, so that individual pages can set their own page title and meta tags. The...
1
by: David R. | last post by:
Is there a way to manually run the Code Reformatting for C# code and aspx code?
4
by: iam247 | last post by:
Hi Can the following 2 things be done in asp.net? I do not need a lot of guidance on how to implement - just can it be done and any anticipated problems. 1. GENERATE PAGE ON THE FLY I am...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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.