Visual Studio 2008 - html not updating with design view

Last post 12-11-2009 1:03 PM by Crotchy. 34 replies.

Sort Posts:

  • Visual Studio 2008 - html not updating with design view

    02-04-2009, 12:49 PM
    • Member
      1 point Member
    • ndoharris
    • Member since 06-07-2008, 1:33 AM
    • Posts 2

    I am using Visual Studio 2008 (ver 9.0.30729.1 SP) with Sp1 and .Net 3.5SP1 on Vista Ultimate.

    When I create add a menu using the control on the Toolbox's Navigation tab, everything goes just fine at first - the menu get created and items can be added with no problem.


    However, after editing the menu the first time i can add items in Design View and all appears well. If I save the aspx file and reopen it later, the later changes to the menu do not appear. It appears that the changes being made while in Design view appear on the screen, but are not being applied to the html.  I have checked this and verified - switching between Design and Source views shows that what is shown in Design view is not being applied to the source code (html).

     Any ideas out there about how to fix this? Anyone else seen this?

     Thanks in advance for any help.

  • Re: Visual Studio 2008 - html not updating with design view

    02-05-2009, 6:30 AM
    Right click on the formatting tool bar and select HTML Source editing. Then you will get a box with different HTML formats and then select the appropriate one.
    Avantha Siriwardana
    Beware of bugs in the above code; I have only proved it correct, not tried it.
    (Donald Knuth)
    http://www.linkedin.com/in/avanthasiriwardana
  • Re: Visual Studio 2008 - html not updating with design view

    02-05-2009, 2:20 PM

    Unfortunately, it is a known issue and we are working on a fix. I can't give you a time line, sorry. Sometimes it helps using properties window instead of chrome (smart task menu) or vise versa.

    Thanks

    ------------------------------------------------------------

    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: Visual Studio 2008 - html not updating with design view

    03-06-2009, 10:58 AM
    • Member
      10 point Member
    • Richard
    • Member since 06-14-2002, 2:04 PM
    • Posts 3

    Hi Mikhail,

     I have tried both of these suggestions and none of my changes save. When I add events it puts in the C# event handler but does not add it into the aspx, so I have to manually type it in.

     Do you have a date for when this fix will be implemented?

  • Re: Visual Studio 2008 - html not updating with design view

    03-06-2009, 11:47 AM

    You should see it in a couple weeks. I will post announcement in this forum and in our team blog

    Thanks

    ------------------------------------------------------------

    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: Visual Studio 2008 - html not updating with design view

    03-14-2009, 7:31 AM
    • Member
      10 point Member
    • Richard
    • Member since 06-14-2002, 2:04 PM
    • Posts 3
    As a workaround for this issue I create a new page and use the designer on that. I then manually copy the generated aspx code back into my original page (where the designer is broken). Not the best solution, but it still lets you use the designer to generate the aspx.
  • Re: Visual Studio 2008 - html not updating with design view

    03-22-2009, 8:26 PM
    • Member
      6 point Member
    • gmirli
    • Member since 03-23-2009, 12:05 AM
    • Posts 3

     I have a similar issue that the changes in design view is not persisted into the source view.

    It's easy to repeat in VS2008 SP1 (I'm using Vista Enterprise):

    1. Switch to Split View to see the problem easily
    2. Create a Panel control
    3. Drag a RadioButtonList control to the Panel control
    4. Select Edit Items from the smart tag menu of the RadioButtonList control
    5. Add 4-5 items (just Add, do not specify any Text or Value)
    6. Click OK.  The design view display is correct, and the change MIGHT be persisted to source code
    7. Select Edit Items again, and delete 2-3 items, then OK
    8. Repeat the Add/Delete items a few times, you should see that the changes won't be persisted to source code (design view is correct)

    The following issue in Connect looks similar:

    https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=390933

    Unfortunately the official reply was that there will be no fix in the current version.  It is completely unacceptable if that is true.  I agree with one of the feedback in the above Connect thread that this will make VS2008 virtually useless (or at least the design view useless) because we might risk losing all our work unknowingly as the design view is correct, but not saved to source code.

    I sincerely hope that MS will take this issue seriously.

    Regards

     

  • Re: Visual Studio 2008 - html not updating with design view

    03-23-2009, 1:31 PM
    Answer
    Thanks

    ------------------------------------------------------------

    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: Visual Studio 2008 - html not updating with design view

    03-23-2009, 11:47 PM
    • Member
      6 point Member
    • gmirli
    • Member since 03-23-2009, 12:05 AM
    • Posts 3

    Thank you!   That fixes the problem! 

  • Re: Visual Studio 2008 - html not updating with design view

    03-24-2009, 12:05 AM
    • Member
      1 point Member
    • ndoharris
    • Member since 06-07-2008, 1:33 AM
    • Posts 2

     Thank you!!! The hot fix worked on both the Vista and XP machines! This will surely save me tons of time. :-)

     

  • Re: Visual Studio 2008 - html not updating with design view

    03-24-2009, 5:25 PM
    • Member
      4 point Member
    • larslinq
    • Member since 03-24-2009, 9:14 PM
    • Posts 2

    Thanks for the hotfix.  it solves the problem.

    However it seems that it creates a new

    In VS2008 designer: add a standard panel to the form

    on to that a standard <img..> image.

    When swichting between designer and code the designer amends the filepath for the src of the image.

    It keeps adding something like [S]file:// to the filepath resulting in VS hanging. ?!!

    Of course I can change all "<img" tags to <asp:image server controls but thats really what i wanted

    Any idea?

     Thanks

     Lars

     

  • Re: Visual Studio 2008 - html not updating with design view

    03-25-2009, 1:25 PM
    • Member
      6 point Member
    • gmirli
    • Member since 03-23-2009, 12:05 AM
    • Posts 3

    Similar findings with Lars.

    I dragged an <img> onto an <asp:panel>, then the code became:

    <asp:Panel ID="Panel1" runat="server">
       <img src="[A]http://www.google.com/intl/en_ALL/images/logo.gif" />
    </asp:Panel>

    But VS didn't hang up. 

    When I reopened the webform, the image (of course) could not be displayed.

    (However, I didn't check if this bug exists before the hotfix.)

     

    Regards

     

  • Re: Visual Studio 2008 - html not updating with design view

    03-25-2009, 1:56 PM
    • Member
      4 point Member
    • larslinq
    • Member since 03-24-2009, 9:14 PM
    • Posts 2

    I am afraid It did not ;-(

    and the bug will dissappear if you uninstall the hotfix.

    lars

  • Re: Visual Studio 2008 - html not updating with design view

    03-31-2009, 2:08 PM
    • Member
      8 point Member
    • Nomad88
    • Member since 03-30-2009, 8:52 AM
    • Posts 7

    Appears to fix the update on the standard properties but some properties for a Telerik Grid, for example, was not being updated...

  • Re: Visual Studio 2008 - html not updating with design view

    04-14-2009, 1:39 PM
Page 1 of 3 (35 items) 1 2 3 Next >