Noooooooooooooooooooooooooooo
Why do that ... WHY??
I was ranting on this newsgroup about a year ago about this, and someone
told me it would be fixed in 2005.
Damn them!
I have figured out how to prevent it though, but its a bit of a pain in the
arse
When you create say a button, be sure to make it like this:
<asp:Button id="btnWhatever" runat="server"></asp:Button>
rather than
<asp:Button id="btnWhatever" runat="server"/>
For the time being, Vis the Stud will leave it alone.
Then when you double click to add an event, it will suddenly mangle it, like
this
<asp:Button id="btnWhatever"
runat="server"></asp:Button> <!-- ofcourse this is multiplied by how many
controls you have, tables etc. -->
Immeadietaly go back into your html view of you ASPX page, and click
'ctrl+z' twice
It will have moved it back to the original neater form:
<asp:Button id="btnWhatever" runat="server"></asp:Button>
This works to keep your page mangle free, but bare in mind, if you forget to
do it once - and just once - its all over!!!!
"Benton" <co*******@gmail.com> wrote in message
news:3n*************@individual.net...
"Grant Merwitz" <gr***@workshare.com> escribió en el mensaje
news:e0**************@TK2MSFTNGP09.phx.gbl... Yeah, we can only hope Vis 2005 fixes these problems.
the way it Mangles my HTML really really really really really really
really pisses me off -- thats a lot of really's
Have you tried VS 2005 Beta 2? It mangles HTML... BIG
TIME!!!!!!!!!!!!!!!!!! :(
-Benton
"jasonkester" <ja*********@gmail.com> wrote in message
news:11**********************@g49g2000cwa.googlegr oups.com... Grant Merwitz wrote:
Try changing the project from Debug to Release mode, recompiling
then changing back again from Release to Debug
Really? That is usually the CAUSE of this problem when I hit it.
I just bail out of VS.NET and double-click the prominent desktop batch
file I wrote that deletes every .dll in all my projects. Fixes it
every time.
Strange the MS hasn't put much effort into fixing this. I can only
guess that it goes deep, and there's not much they can do about it
short of a major rewrite. Sort of the same reason that the Visual
Designer always has and always will mangle your HTML.
Jason Kester
Expat Software Consulting Services
http://www.expatsoftware.com/