473,732 Members | 1,924 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2178
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.ne t>
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.publi c.vstudio.devel opment,microsof t.public.dotnet .framework.aspn e
tNNTP-Posting-Host: atlrel2.hp.com 156.153.255.202
Lines: 1
Path: cpmsftngxa07.ph x.gbl!cpmsftngx a06.phx.gbl!TK2 MSFTNGP08.phx.g bl!TK2MSFTNGP10 .
phx.gblXref: cpmsftngxa07.ph x.gbl microsoft.publi c.dotnet.framew ork.aspnet:2085 34 microsoft.publi c.vstudio.devel opment:4309X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.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.ne t> wrote in message
news:%2******** ********@TK2MSF TNGP10.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@localh ost> wrote in message
news:OA******** ******@TK2MSFTN GP11.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.ne t> wrote in message
news:%2******** ********@TK2MSF TNGP10.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@localh ost> wrote in message
news:OA******** ******@TK2MSFTN GP11.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.ne t> wrote in message
news:%2****** **********@TK2M SFTNGP10.phx.gb l...
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.ne t>
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.publi c.vstudio.devel opment,microsof t.public.dotnet .framework.aspn e
t
NNTP-Posting-Host: atlrel2.hp.com 156.153.255.202
Lines: 1
Path:


cpmsftngxa07.ph x.gbl!cpmsftngx a06.phx.gbl!TK2 MSFTNGP08.phx.g bl!TK2MSFTNGP10 .
phx.gbl
Xref: cpmsftngxa07.ph x.gbl microsoft.publi c.dotnet.framew ork.aspnet:2085 34


microsoft.publi c.vstudio.devel opment:4309
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.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.ne t>
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.publi c.dotnet.framew ork.aspnet
NNTP-Posting-Host: atlrel2.hp.com 156.153.255.202
Lines: 1
Path: cpmsftngxa07.ph x.gbl!cpmsftngx a06.phx.gbl!TK2 MSFTNGP08.phx.g bl!TK2MSFTNGP10 .
phx.gblXref: cpmsftngxa07.ph x.gbl microsoft.publi c.dotnet.framew ork.aspnet:2087 91
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.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.ne t>
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.publi c.vstudio.devel opment,microsof t.public.dotnet .framework.aspn e t
NNTP-Posting-Host: atlrel2.hp.com 156.153.255.202
Lines: 1
Path:


cpmsftngxa07.ph x.gbl!cpmsftngx a06.phx.gbl!TK2 MSFTNGP08.phx.g bl!TK2MSFTNGP10 . phx.gbl
Xref: cpmsftngxa07.ph x.gbl
microsoft.publi c.dotnet.framew ork.aspnet:2085 34
microsoft.publi c.vstudio.devel opment:4309
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.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
6553
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 Workshop program: hcw.exe that's included with Visual Basic. This exact same file compiled perfectly with no notes, warnings or errors prior to reformatting my system. Prior to the reformatting, I copied the help.rtf file onto a CD and checked the box to...
4
3169
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 i will get solution this time. Any help would be appreciated. Now we are building dynamic websites. The Operating system that we have is Windows 2000(not Advanced server not Profession), it just says
12
1350
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. Using regions to manage source code in the IDE is very useful however I prefer to align the region text on the left-most margin of the editor, i.e. margin-left 0; that is. The examples which follow show what I prefer and how VS2005 reformats the...
3
1374
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
7034
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 application . But when i use the code to start /Stop the service in a aspx page i get an error like:
9
1604
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 item<br /> includes a line break</li> </ul>
1
1872
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 master page looks like this... <%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %>
1
1378
by: David R. | last post by:
Is there a way to manually run the Code Reformatting for C# code and aspx code?
4
1303
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 aware that ASP generates pages on the fly, but I believe it is normally the page content which it generates on the fly - I want the page name genetated 'on the fly' as well as the content.
0
8944
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9445
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9306
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9234
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8186
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6733
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4805
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3259
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2177
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.