-
Visual Studio.Net
Sometimes when I have opened the design view and go back to the HTML it seems like all my code is exploded!
In som way VS tries to order the code but this goes wrong. Is it not possible to turn this off? In other words to lock the HTML code?
I have attached an example of the exploded code.
Code:
<TD class=tdheight1>
<asp:Label id=lblBend Runat="server" text="90° Bend"></asp:Label></TD>
<TD class=tdheight1>
<asp:TextBox id=txtBend20 Runat="server" Width="30px" cssClass="tastFelt">0</asp:TextBox></TD>
<TD class=tdheight1>
<asp:TextBox id=txtVBend20 Runat="server" Width="30px" cssClass="tastFelt">1,5</asp:TextBox></TD>
<TD class=tdheight1>
<asp:TextBox id=txtResBend20 Runat="server" Width="30px" readonly="True" cssClass="resFelt">0</asp:TextBox> </TD>
<TD class=tdheight1>
<asp:TextBox id=txtBend32 Runat="server" Width="30px" cssClass="tastFelt">0</asp:TextBox></TD>
<TD class=tdheight1>
-
I've had that problem it drives me mad sometimes with VS doing things such as rearranging my html so that a tag would start on 1 line and finish on another such as
<br
>
If you go to the tools menu and select options -> text editor -> html/xml -> format
You can turn off options for automatically formatting.
Which helps but i've still not managed to get VS just to leave my code alone.
-
Next version of VS is supposed to have this option. If you look around you can find information on it. Until then, it won't totally stop formatting your code.
It does it for itself, not to piss you off. It needs to restructure stuff so it can create those variables in your codebehind easily.
-
Great, thanks a lot, I will turn this off.
-
I think you still had the "missing code/data lost" bug.
update your Visual Studio to Q324199!!
http://msdn.microsoft.com/vstudio/do...talossifx.aspx
with those patch in my visual studio .NET 2002, your code never explode again, go ahead..you can try it.
anyway if you found other bugs in visual studio .net again please post it to www.asp.net forum,
so they(Visual Studio .NET team) can move quickly to build a new patch.
-
Great, I've installed it now. Looking forward having no problems with the HTML now!
-
Hi Rio, I've installed the patch but I still have the problem. Each time I load start my app it is in design mode, and when I switch to HTML the formatting is there. Is it possible to define, that I wish to start my app up in HTML-mode instead of Design-mode. That will solve the problem because I never use the (f****** :mad:) design-mode anyway