Missing design view after editing Front-Code of Web User Control in ASP.NET

I have a web user control within ASP.NET web application, and When I am trying to edit Front-code, I got unexpected behavior! where the ASP.NET controls have been disappeared and the design view became a blank as shown below !

Modify UserControl

Cause : 

It’s occasionally occurred if there’s an error in front code !

Solution :

In my case, I make sure that there are no errors in front code that has been reviewed carefully.

Note : If the User Control reference a 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 user control.

Modify UserControl 2
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.

Modify UserControl 1

Enjoy 🙂

Advertisements

One thought on “Missing design view after editing Front-Code of Web User Control in ASP.NET

  1. Attractive section of content. I just stumbled upon your blog and
    in accession capital to assert that I acquire actually enjoyed account your blog posts.
    Anyway I will be subscribing to your augment and even I achievement you
    access consistently fast.

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s