Click here to Skip to main content
15,897,273 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Everyone,
I am trying to open a new browser i.e., If I am currently in IE I want to open a page in chrome on click of a button in current page. I did this with the following code
C#
System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.StartInfo.FileName = "safari";
proc.StartInfo.Arguments = HttpContext.Current.Request.Url;
proc.Start();



But it is opening when I hosted my application in server it does not work. Can any body help to resolve this issue?

I am in Chrome I want to open a new IE/Safari browser either serve side or client side.

thanks,
Janardhan.
Posted
Updated 27-Aug-13 17:27pm
v2

 
Share this answer
 
Hi Ankit,
Thanks for your reply, this will work but basically mines is ecommerce site what happens if i use system.diagnostics it will open new browser instance in server not in client machine. I want to open it client side. Is there any way to achieve this.

thanks,
Janardhan.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900