C# project: can no longer see design view for existing file

128 views Asked by At

I'm using Microsoft Visual Studio Professional 2022 (64-bit) - Current Version 17.7.7 & MS .Net Framework v4.8.09037. I created a web form & properly saw design view & html views. I did a lot of work on it, saved it, & closed the project. When I reopened the project the next day & opened that web form, all other views were gone & all I had was the raw html (i.e. no view options at all). How do I get back to seeing the design view as well as the HTML view like when I 1st created the form? I've poked around in the various menu options but nothing I've tried has fixed the problem. I used VS 2003 for many years but I'm new to VS 2022. Help! I'm assuming it's something obvious that I just haven't found but, as I said, I haven't found anything & I'm thoroughly stuck.

I've checked & tried every menu option that looked even remotely like it might help, but nothing has made any difference or helped. I've also tried Shift-F7 but that did nothing at all.

1

There are 1 answers

6
Albert D. Kallal On

Well, either you re-installed vs or did somthing HUGE that you not telling us about.

But, there are several things I would check.

First up, did you install the webforms workflows. If they are not installed, then you can't develop or work on a webforms project.

So, make sure under tools->Get Tools and features, you have selected the legacy web form bits and parts. (as noted, this is starnge that the day before this worked - so I can thus only conclude you delete vs, or re-installed - but you leaving out SOME BIG HUGE MASSVIE detail you NOT sharing with us).

Also, is this asp.net web site applicaiton, or a asp.net web site? (this matters huge here).

Assuming you had/have a .sln file (then that is a asp.net website application), then all should work.

Ok, back to installing the workflows,

So, from above, make sure these are installed/selected:

enter image description here

And if you had reports and/or are using 4.8, then this:

enter image description here

Ok, assume a reboot and restart?

Then you want to enable the legacy webforms desinger.

Tools->options->web forms designer.

enter image description here

And of course you need to close vs for above to take effect.