|
-
Dec 5th, 2003, 04:20 AM
#1
Thread Starter
Frenzied Member
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>
-
Dec 5th, 2003, 08:36 AM
#2
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.
-
Dec 5th, 2003, 11:01 AM
#3
PowerPoster
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.
-
Dec 5th, 2003, 05:14 PM
#4
Thread Starter
Frenzied Member
Great, thanks a lot, I will turn this off.
-
Dec 6th, 2003, 11:29 AM
#5
Junior Member
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.
Last edited by Rio; Dec 7th, 2003 at 02:36 AM.
-
Dec 8th, 2003, 03:19 AM
#6
Thread Starter
Frenzied Member
Great, I've installed it now. Looking forward having no problems with the HTML now!
-
Dec 9th, 2003, 04:35 AM
#7
Thread Starter
Frenzied Member
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****** ) design-mode anyway
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|