Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

default browser 1

Status
Not open for further replies.

EDB2

MIS
Sep 11, 2002
36
US
They say there is no such thing as a stupid question, but this might just win the prize.

How can you control which browser a web application runs in when you are executing the program from within Visual Studio? I'm still in testing phase and I want to test the program under different browsers but it automatically opens in IE even if I make Firefox the default browser by going into Firefox and changing that setting. There must be a setting within Visual Studio that specifies the default browser but darned if I can find it.
 
I don't know much about web applications so I'm not sure I can help, but my first question would be how are you opening the browser? What code?

-I hate Microsoft!
-Forever and always forward.
-My kingdom for a edit button!
 
Sorry for the late reply, had to take Friday off for a funeral.

I'm writing in VB, and executing the code from within Visual Studio.
 
Oh sorry, I believe I misunderstood your question. There is no specific line of code that says 'open this browser' - you just run the web application and it opens the startup HTML page and goes from there. I can open Firefox first and then do a file/open of a specific web page within the program, but I want to run the entire appliaction (which also uses master pages by the way, if that matters) from within Visual Studio so I get the normal 'flow' of pages.
 
I finally found the answer. Go to Solution Explorer and right click on any .aspx file and you get the option 'browse with...' You can then select a different browser from the list and click 'set as default' (there is also an 'add' button to add another browser to the list).

Changing any .aspx file makes the entire thing run in the chosen browser, it's not necessary to go in and set the default on each .aspx file.
 
Here's a star. I saw this thread and didn't think there would be a solution.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top