Results 1 to 7 of 7

Thread: Visual Studio.Net

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2001
    Location
    Denmark
    Posts
    1,049

    Question 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>&nbsp;</TD>
                                    <TD class=tdheight1>
    <asp:TextBox id=txtBend32 Runat="server" Width="30px" cssClass="tastFelt">0</asp:TextBox></TD>
                                    <TD class=tdheight1>

  2. #2
    Frenzied Member Fishcake's Avatar
    Join Date
    Feb 2001
    Location
    Derby, UK
    Posts
    1,092
    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.

  3. #3
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    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.

  4. #4

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2001
    Location
    Denmark
    Posts
    1,049
    Great, thanks a lot, I will turn this off.

  5. #5
    Junior Member
    Join Date
    Oct 2003
    Location
    Earth
    Posts
    23
    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.

  6. #6

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2001
    Location
    Denmark
    Posts
    1,049
    Great, I've installed it now. Looking forward having no problems with the HTML now!

  7. #7

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2001
    Location
    Denmark
    Posts
    1,049
    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
  •  



Click Here to Expand Forum to Full Width