Prior to ASP.NET 5, there used to be an option in Visual Studio 2015 in the project properties | Web page for the start action not to open a page when running the web app. This allowed you to have an existing page open in the browser and just refresh it.
This option has now disappeared, resulting in a new browser page being opened every time I hit run, even though I have a page open at the correct URL etc. ready to be refreshed.
How can I get the previous behaviour?
Go to Project Properties > Debug > Uncheck "Launch Browser" > Save. Save this answer.
To run the application without opening Visual Studio, You need to install IIS (as rtpHarry has suggested). Then You need to have your application in a virtual directory. To create virtual directory perform following steps: Type inetmgr at command prompt -> Click OK.
All replies. You can host your application on iis and run without visual studio. Create a windows batch file to start the ASP.NET Web Development Server and point it to your application's root directory. To open aspx page you need a ASP.NET server.
Alternatively, you can design your ASP.NET Web pages to run on a specific browser such as Microsoft Internet Explorer 6 and take advantage of browser-specific features. Compatible with any language supported by the . NET common language runtime, including Microsoft Visual Basic and Microsoft Visual C#.
In the Debug page of the project properties there's a checkbox "Launch URL" or “Launch browser” in later versions of VS. Unchecking it prevents VS from launching a page in the browser.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With