How to avoid the code rewriting?

Last post 05-19-2008 6:25 AM by websalesopt. 5 replies.

Sort Posts:

  • How to avoid the code rewriting?

    05-12-2008, 1:41 AM
    • Loading...
    • byeg
    • Joined on 05-12-2008, 5:28 AM
    • Posts 6

    Hi y'all,

     When I switch between design view and source view some tags were rewritten from lowercase to uppercase. There also some adds like __designer:wfdid="w24". How to avoid that? Thank you!

  • Re: How to avoid the code rewriting?

    05-12-2008, 3:53 PM
    • Loading...
    • stiletto
    • Joined on 07-10-2003, 8:42 AM
    • Louisville, KY
    • Posts 3,154

    I've not had those problems since moving from VS2003 to VS2005. 

    Do you have any add-ins or other "helpers" installed that could be changing that?

  • Re: How to avoid the code rewriting?

    05-12-2008, 9:42 PM
    • Loading...
    • byeg
    • Joined on 05-12-2008, 5:28 AM
    • Posts 6

    I have only MS AJAX 1.0 and MS AjaxControlToolkit. By the way, now I noticed that rewriting is only inside UpdatePanels. Is there any way to avoid it?

  • Re: How to avoid the code rewriting?

    05-12-2008, 10:50 PM
    Answer
    • Loading...
    • byeg
    • Joined on 05-12-2008, 5:28 AM
    • Posts 6

    It turned out that the problem was because the register for the assembly and script manager were placed in the master page. The code rewriting stops if place them to the content page.

  • Re: How to avoid the code rewriting?

    05-14-2008, 3:26 AM
    Answer

    Hi,

    Did you have old version of Ajax in your machine? If so, there will be such format issue. To resolve it, you can try to uninstall the old Ajax completely.

    You can refer to http://forums.asp.net/t/1058608.aspx

     

    I hope this helps.

    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
  • Re: How to avoid the code rewriting?

    05-19-2008, 6:25 AM
    • Loading...
    • websalesopt
    • Joined on 05-17-2008, 10:13 AM
    • Posts 5

    I would also like to know about this.

    I may not be writing about the same issue as above, but Visual Studio 2008 has altered my code on a number of occasions now. The latest time it altered me code, it broke the CSS layout of an ASPX page by inserting an extra /close div tag.

    This caused the entire remaining content below this extra tag to spill all over the page, outside of the container div.

    VS has also taken the liberty (on a few occasions) of rewriting some code in my unordered lists requiring me to rewrite them each time. As a countermeasure I have simply taken to saving two or three different backups of the page as I build, which I recycle periodically (because the last time there was an uncalled for code revision I was unable to 'undo' it.)

     I would love to find out how to turn this code rewriting feature off if I am able to, or is this just a program glitch without a fix at this point?

     

    Thank you,

    -Sean

Page 1 of 1 (6 items)
Microsoft Communities
Page view counter