{"id":66,"date":"2013-05-12T10:44:00","date_gmt":"2013-05-12T10:44:00","guid":{"rendered":"http:\/\/ashokaon.tech\/?p=66"},"modified":"2020-07-18T00:16:55","modified_gmt":"2020-07-17T18:46:55","slug":"how-to-launch-your-aspnet-web-application-on-multiple-browsers-from-visual-studio","status":"publish","type":"post","link":"https:\/\/ashokaon.tech\/blog\/how-to-launch-your-aspnet-web-application-on-multiple-browsers-from-visual-studio\/","title":{"rendered":"Launching your ASP.NET web applications on multiple browsers at the same time from Visual Studio"},"content":{"rendered":"<p><span style=\"font-size: 10px;background-color:#FFFF99;display:block\">(Note: This blog post was originally published under my old domain(codesmiles.com), <a href=\"http:\/\/codesmiles.com\/post\/How-to-launch-your-ASPNET-web-application-on-multiple-browsers-from-Visual-Studio.aspx\" target=\"_blank\" rel=\"noopener noreferrer\">here<\/a>. <a href=\"https:\/\/web.archive.org\/web\/2013*\/http:\/\/codesmiles.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">Web Archive link<\/a>.<\/span><\/p>\n<p>Visual Studio 2010 offered option to view a particular .aspx page on multiple browsers when you right-click the file and chose <strong>Browse With\u2026<\/strong> but it didn\u2019t provide storing the setting and allowing to launch the web page on multiple browsers at the same time when you execute every time.<\/p>\n<p>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\u2019d like to debug with or when you Execute without debugging (Ctrl+F5) you will be able to launch the web application in multiple browsers.<\/p>\n<p>As you may have noted from my earlier article about <a href=\"http:\/\/www.codesmiles.com\/post\/Visual-Studio-2012-New-Features.aspx\" target=\"_blank\" rel=\"noopener noreferrer\">Visual Studio 2012 new features<\/a>, 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.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" style=\"border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px\" title=\"Visual-Studio-2012-Browser-Drop-Down\" src=\"\/blog\/wp-content\/uploads\/Visual-Studio-2012-Browser-Drop-Down_1.png\" border=\"0\" alt=\"Visual-Studio-2012-Browser-Drop-Down\" width=\"472\" height=\"232\"><\/p>\n<p>&nbsp;<\/p>\n<p>If you click the <strong>Browse With\u2026<\/strong> menu option shown above, you will be presented with the below dialog.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" style=\"border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px\" title=\"Visual-Studio-2012-Browse-With-Dialog\" src=\"\/blog\/wp-content\/uploads\/Visual-Studio-2012-Browse-With-Dialog.png\" border=\"0\" alt=\"Visual-Studio-2012-Browse-With-Dialog\" width=\"465\" height=\"348\"><\/p>\n<p>This window shows all the names of the browsers installed in your machine. As indicated by the dialog, you can <strong>select more than one<\/strong> browser and click <strong>Browse <\/strong>to launch the web application in the chosen browsers, <strong><span style=\"text-decoration: underline;\">this will not launch your web application in Debug mode<\/span><\/strong>.<\/p>\n<p>Also, you can select multiple browsers and click <strong>Set as Default<\/strong> 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 <strong>Multiple Browsers<\/strong> instead of the default browser name.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" style=\"border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px\" title=\"Visual-Studio-2012-MultipleBrowsers-ExecuteButton\" src=\"\/blog\/wp-content\/uploads\/Visual-Studio-2012-MultipleBrowsers-ExecuteButton_1.png\" border=\"0\" alt=\"Visual-Studio-2012-MultipleBrowsers-ExecuteButton\" width=\"409\" height=\"105\"><\/p>\n<p>&nbsp;<\/p>\n<p>If you click the Execute command(which will execute your web application in debug mode) you will get the below prompt.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" style=\"border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px\" title=\"Visual-Studio-2012-DebugMode-ChooseBrowser\" src=\"\/blog\/wp-content\/uploads\/Visual-Studio-2012-DebugMode-ChooseBrowser.jpg\" border=\"0\" alt=\"Visual-Studio-2012-DebugMode-ChooseBrowser\" width=\"404\" height=\"177\"><\/p>\n<p>You can choose which browser you wish to use for debugging.<\/p>\n<p>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.<\/p>\n<p>&nbsp;<\/p>\n<p>Happy Coding !<\/p>\n","protected":false},"excerpt":{"rendered":"<p>(Note: This blog post was originally published under my old domain(codesmiles.com), here. Web Archive link. Visual Studio 2010 offered option to view a particular .aspx page on multiple browsers when you right-click the file and chose Browse With\u2026 but it didn\u2019t provide storing the setting and allowing to launch the<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,25],"tags":[26],"_links":{"self":[{"href":"https:\/\/ashokaon.tech\/blog\/wp-json\/wp\/v2\/posts\/66"}],"collection":[{"href":"https:\/\/ashokaon.tech\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ashokaon.tech\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ashokaon.tech\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ashokaon.tech\/blog\/wp-json\/wp\/v2\/comments?post=66"}],"version-history":[{"count":5,"href":"https:\/\/ashokaon.tech\/blog\/wp-json\/wp\/v2\/posts\/66\/revisions"}],"predecessor-version":[{"id":281,"href":"https:\/\/ashokaon.tech\/blog\/wp-json\/wp\/v2\/posts\/66\/revisions\/281"}],"wp:attachment":[{"href":"https:\/\/ashokaon.tech\/blog\/wp-json\/wp\/v2\/media?parent=66"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ashokaon.tech\/blog\/wp-json\/wp\/v2\/categories?post=66"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ashokaon.tech\/blog\/wp-json\/wp\/v2\/tags?post=66"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}