webformsvisual-studio-2022designer

Visual Studio 22 ASP.Net Web Forms: prevent designer from automatically opening the current page when debugging


When I run my Web Forms application in VS 2022, the designer automatically opens every page I navigate to. So at startup, Site.Master and Login.aspx are automatically opened (the designer displays them in a tab) and VS gains focus. Every effin time I hit one of these pages. Very annoying.

This started a few months back with a VS update. Is there a way to disable this "feature"?


Solution

  • I don't experiance that effect at all, and I'm working on some asp.net + webforms projects all the time in vs2022.

    I would however, suggest you check this setting:

    tools->options->Web Forms designer.

    And then choose this:

    enter image description here

    In other words, don't use live preview.