Todd Davis
Todd Davis

Reputation: 6035

Visual Studio 2012 stop debugging open page

I know this is a stupid question, but I must be Googling on the wrong search params...

When I am in VS 2012, if I am currently changing the code on a given web page (e.g. cshtml, aspx) and press F5, the website attempts to run the application starting at my current page that I am editing, as opposed to running default start page for the site.

How do I prevent this from happening?

Upvotes: 1

Views: 232

Answers (3)

Sarath Rachuri
Sarath Rachuri

Reputation: 2116

You should have setup the current page you are editing as a startup page. To make the default page as startup page, just edit the .csproj file in notepad and set the startpageurl tag empty.

Startpageurl tag should be like

Upvotes: 0

Todd Davis
Todd Davis

Reputation: 6035

I should have mentioned that this is an MVC project. However I found the answer here:

How do you set the startup page for debugging in an ASP.NET MVC application?

Upvotes: 0

Irfan TahirKheli
Irfan TahirKheli

Reputation: 3662

Right click your default page and click on set as start page.

Upvotes: 1

Related Questions