Re: Stop VS.Net from reformatting my aspx pages
From: Abhishek Srivastava (abhishek-srivastava_at_nospam.net)
Date: 02/10/04
- Next message: Steven Cheng[MSFT]: "RE: User Web Control Load Problem"
- Previous message: Abhishek Srivastava: "Re: Stop VS.Net from reformatting my aspx pages"
- In reply to: Ed Kaim [MSFT]: "Re: Stop VS.Net from reformatting my aspx pages"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 10 Feb 2004 10:50:08 +0530
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.aspx?tabIndex=4&tabId=46.
>
> "Michael Ramey" <raterus@localhost> wrote in message
> news:OAvBRty7DHA.1000@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" <abhishek-srivastava@nospam.net> wrote in message
>>news:%23gehFcw7DHA.2432@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.
>>
>>
>
>
- Next message: Steven Cheng[MSFT]: "RE: User Web Control Load Problem"
- Previous message: Abhishek Srivastava: "Re: Stop VS.Net from reformatting my aspx pages"
- In reply to: Ed Kaim [MSFT]: "Re: Stop VS.Net from reformatting my aspx pages"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|