views:

20

answers:

2

Hi, im developing an asp.net website application but suddenly all changes i make to the page in the visual studio designer are not being saved for some reason. Every thing i do in the code behind file is saved with out any problem, also if i edit the .aspx file but in sourceview, the changes are saved, but if i drag a control from the toolbox onto the page designer and set some properties and then save, nothing will have been saved when i close and re-open the page, all changes are lost. Its confusing and i have no idea why.

Edit: also this happens on only one aspx file. All the other files edits are saved.

Edit: I have tried the hotfix here with no luck http://blogs.msdn.com/b/webdevtools/archive/2009/03/23/hotfix-for-design-view-does-not-update-html-and-to-designer-inserts-a-lot-of-nbsp.aspx

A: 

If you have any of the auto-generated files open in the editor, this can stop the designer from persisting its changes.

Rowland Shaw
Actually no other file is open. i have reached as far as restarting windows!!
Name.IsNullOrEmpty
+1  A: 

I think it is just a bug in visual studio. I have also experienced this behaviour, you edit things in design view then switch back to source view and the markup does not reflect the cahanges you made in design view. I have noticed it particulary when adding/editing columns in a gridview. Sometimes it works, sometimes not. I have never been able to work out a pattern.

Ben Robinson