RepeatHost Business Hosting

Firefox

Launch URL in Default Browser using C#

After deploying an application using the standard way of launching a URL in the default browser:

System.Diagnostics.Process.Start("http://www.google.com");

We found that almost randomly, an exception is thrown on certain user's machines when this method is called. I did some research and a couple of interesting posts came up.

Fix for Firefox click() event issue

Firefox does not support the javascript click() event on a hyperlink. So doing something like:

<asp:LinkButton ID="lnkMyButton" runat="server">My Button To Click</asp:LinkButton>
 
<a href="#" onclick="document.getElementById('lnkMyButton').click();">Click this to click the other link!</a>