Click here to Skip to main content
Click here to Skip to main content

Launching ASP.NET web applications on multiple browsers at the same time from Visual Studio(2012)

, 12 May 2013 CC (ASA 3U)
Rate this:
Please Sign up or sign in to vote.
This post explains how to launch your ASP.NET web application on multiple browsers at the same time from Visual Studio, and how this feature is enhanced in Visual Studio 2012

Introduction

Visual Studio 2010 offered option to view a particular .aspx page on multiple browsers when you right-click the file and chose Browse With… but it didn’t provide storing the setting and allowing to launch the web page on multiple browsers at the same time when you execute every time.

In this article we will see how this feature is enhanced in Visual Studio 2012; you can set multiple browsers as default and store this setting permanently and when you Debug(F5) you will get a dialog to choose the browser you’d like to debug with or when you Execute without debugging (Ctrl+F5) you will be able to launch the web application in multiple browsers.  

Launching ASP.NET web applications on multiple browsers at the same time from Visual Studio(2012) 

As you may have noted from my earlier article about Visual Studio 2012 new features, Visual Studio 2012 has a browser drop down that lets you select the browser that will be used to launch your ASP.NET web application when you debug it (F5) as shown below, as I mentioned in my article, this was achievable in earlier Visual Studio versions via other not-so-quick menu/context menu commands.

Visual-Studio-2012-Browser-Drop-Down

 

If you click the Browse With… menu option shown above, you will be presented with the below dialog.

Visual-Studio-2012-Browse-With-Dialog

This window shows all the names of the browsers installed in your machine. As indicated by the dialog, you can select more than one browser and click Browse to launch the web application in the chosen browsers, this will not launch your web application in Debug mode.

Also, you can select multiple browsers and click Set as Default to make this setting permanent, so that whenever you execute the web application without debugging(Ctrl+F5) it will be launched in these browsers at the same time. The Execute command in Visual Studio 2012 will be captioned as Multiple Browsers instead of the default browser name.

Visual-Studio-2012-MultipleBrowsers-ExecuteButton

 

If you click the Execute command(which will execute your web application in debug mode) you will get the below prompt.

Visual-Studio-2012-DebugMode-ChooseBrowser

You can choose which browser you wish to use for debugging.

I think this particular feature will be a productivity enhancer for web developers who work on achieving browser compatibility and tackle issues arising when providing multiple browser support for their ASP.NET Web Applications. 

License

This article, along with any associated source code and files, is licensed under The Creative Commons Attribution-Share Alike 3.0 Unported License

Share

About the Author

Ashoka RKT
Technical Lead
India India
I am Ashoka (R.K.T.Ashoka), I am a software professional who is passionate about designing and developing software applications. I blog at www.codesmiles.com, I will be writing about .Net & programming.
Follow on   Twitter   LinkedIn

Comments and Discussions

 
QuestionThanks For this usefull tut PinmemberMember 1035419722-Oct-13 23:42 
QuestionVS2012 multiple browser chooser PinmemberclintonG9-Aug-13 10:43 
AnswerRe: VS2012 multiple browser chooser PinmemberclintonG9-Aug-13 10:48 
GeneralRe: VS2012 multiple browser chooser PinprofessionalRKT.Ashoka10-Aug-13 11:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.141216.1 | Last Updated 13 May 2013
Article Copyright 2013 by Ashoka RKT
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid