In this article, I am gonna to solve the below issue
The design view is out of sync with source view in Visual Studio.
I have a web user control within a page in ASP.NET web application,
I have tried to edit the Front-code, I got unexpected behavior! where the ASP.NET controls disappeared and the design view became out of sync.
It’s occasionally occurred if there’s an error in front code!
In my case, I make sure that there are no errors in the front code that have been reviewed carefully.
Note: If the User Control reference a CSS style-sheet you should also check it and ensure that it’s cleaned from error.
After a long investigation trip, I decided to move any CSS code to the bottom of the user control.
After moving CSS codes and CSS files to the bottom of user control. I surprised where I can now edit Front-code without missing the design view.
- ASP.Net 3.5.
- Visual Studio.