Hi all,
I need to know if it is possible to open a browser window on the client's machine from within a Web Service.
I have a web service which accepts an XML file and writes another XML file to a particular location. I then need a browser window to pop-up with a page that reads the newly wrtten XML file and allows the user to edit it.
I have this working fine in debug mode using System.Diagnostics.Process.Start() but undertsand that this won't work outside of debug mode.
Any suggestions would be much appreciated.

Scott LysleRank #49 · 31K reputationPosted Nov 24, 2007, 9:46 AM EST
If you were to just make your service return the url pointing to the new file, you could handle this in the browser. In the following, the example is hitting a web service that returns the path to http://www.msn.com, the web application is formatting some javascript that will use the path returned from the web service to build a popup pointing to that url. Of course the alternative would just be to redirect to that new location; I have commented that out though since you'd stated that you wanted to use a popup.
protected void Button1_Click(object sender, EventArgs e) { HelloMsn.Service svc = new HelloMsn.Service(); //Response.Redirect(svc.HelloMSN()); string strScript; strScript = ""; Response.Write(strScript); }Shanan3 reputationPosted Nov 26, 2007, 11:54 AM EST