locked
Start Website on Non Default Browser RRS feed

  • Question

  • User-786564416 posted

    My default browser is Chrome. However, I want to open my asp.net website on FireFox without changing the PC default browser to the FireFox. Is it possible?

    Thursday, November 9, 2017 9:17 PM

All replies

  • User2103319870 posted

    alihusain_77

    However, I want to open my asp.net website on FireFox without changing the PC default browser to the FireFox. Is it possible?

    if you want to open the website in a different browser from Visual Studio then you can use  Browse With Dialog Box

    Right-click on a page within a Web Project and click "Browse With..."

    From this dialog you can click Set Default

    Thursday, November 9, 2017 9:31 PM
  • User-786564416 posted

    I know how to browse a website on the VS 2015 with a specific browser. However, will this change the default browser of the user?

    Friday, November 10, 2017 8:25 PM
  • User2053451246 posted

    However, will this change the default browser of the user?
    No.  It doesn't affect anything besides the browser VS launches when you debug.

    Friday, November 10, 2017 8:37 PM
  • User724169276 posted

    No . it won't .. AFAIK its not possible either to forcefully opening a particular website in specific browser from client side.

    Tuesday, November 14, 2017 2:44 PM
  • User991499041 posted

    Hi alihusain_77,

    Restricted by security, there is no permission to start the process in the General Web page.

    Regards,

    zxj

    Wednesday, November 15, 2017 2:43 AM
  • User753101303 posted

    Hi,

    And if you need further help, explain why you would like to do such a thing. Sometimes you test for a browser *feature* to do something if the feature is missing (for example no webGL support).

    Wednesday, November 15, 2017 10:22 AM
  • User-1838255255 posted

    Hi alihusain_77,

    According to your description, I think you want to trigger the google browser when client side browse site, I think the server site code can not trigger client side program, so you can not through asp.net to achieve this. 

    But I have a suggestion that you could give a prompt message to suggest user visit site in the chrome. 

    Best Regards,

    Eric Du 

    Thursday, November 16, 2017 2:26 AM
  • User2053451246 posted

    You have additionally posted this thread:

    https://forums.asp.net/t/2131894.aspx?Website+Default+Browser+Was+set+in+VS+2015+to+FireFox+But+When+Browse+in+IIS+Microsoft+Edge+is+triggered

    The browser you use to debug in Visual Studio is not what your finished and published web application will force on users.  Visual Studio debugging browser is the NOT the same as the end users default browser.  Launching from IIS will launch your default web browser.  In your case it's Edge.

    Thursday, November 16, 2017 6:19 AM