asp.net mvc 4 - Starting Multiple Visual Studio 2012 Web Applications in Tabs of a Single Browser Instance -
i have 2 asp.net mvc 4 projects in single solution in visual studio 2012. have solution set use multiple startup projects, action set start. when click start toolbar button, each project starts in different internet explorer browser window.
but i'd 2 projects start in 2 tabs of single browser instance. there way that?
thanks!
the way know of is:
add simple view in 1 of projects empty html. set project launch simple view startup page, , set other projects "don't open page, wait request".
in head section of empty view, add following javascript script section:
<script> // open project in newtab (works in ie) window.open('http://localhost:<otherprojectport>/otherprojectpage', 'tab1'); // many of these well, open other actions/pages project: window.open('@url.action("edit", "user", new { id=1 })', 'tab2'); // note different name // , open third page in original tab opens: document.location.href = '@url.action("index", "user")'; </script>
it way have found it, far, , anyway find easier edit single view multiple project property pages change tabs open.
you may have tell browser it's ok site open popups. that, exclude document.location
line first time run it, , tell blocked popup can "always allow them" site.
footnote
if want use chrome launcher solution found above use extension (such "one window", not endorsing, nor claiming secure, don't blame me if computer leaves home if use it) stop pages loading separate popups.
Comments
Post a Comment