locked
Open a new tab with different browser with ASP.NET, is it possible ?? RRS feed

  • Question

  • User1464402858 posted

    Hello, 

    Is anyone can help me with this question? When clicking a button, it will open a new tab with Firefox or Chrome but my default browser is IE. Is it possible to do that and how to achieve that?? Thanks 

    Monday, June 10, 2019 2:45 PM

All replies

  • User475983607 posted

    Is anyone can help me with this question? When clicking a button, it will open a new tab with Firefox or Chrome but my default browser is IE. Is it possible to do that and how to achieve that?? Thanks 

    It is not possible.

    Monday, June 10, 2019 2:57 PM
  • User288213138 posted

    Hi pp1109,

    It's impossible,because each operating system has a setting of default web browser for each user profile.

    .Net provides System.Diagnostics namespace, which has a Process class,this process class provides a method called Start(),Using this Start() method you can run any process.

    If you want to implement the same feature in Windows Forms application then it is quite possible. But in case of web applications this will not support.

    Because if you will try to use System.Diagnostics namespace and code using its classes in web application, the code will be executed at server side not at the client side.

    so it is not possible to implement the same in web application.

    Also one option may be to use javascript. But using javascript also it is not possible to identify whether a particular web browser is installed on the client machine or not.
     
    Best Regard,
    Sam

    Tuesday, June 11, 2019 5:38 AM