My application is writing XML to a file which is then downloaded (Response.Write) and the user can then open.
Question: No matter what Browser I'm using (Chrome, Firefox,etc.) the downloaded file is opened in IE. I want the downloaded file to be opened in the browser which created it.
strXML = "<ROWSET></ROWSET>";
Response.Clear();
Response.Charset = "";
Response.ContentType = "text/xml";
Response.AddHeader("content-disposition", "attachment; filename=\"kupot.xml\"");
Response.Write(strXML);
Response.Flush();
Response.End();
Response.Close();
What should I do so that if the downloaded file was created in, for example, Chrome, then when it's downloaded and I'm asked if I want to open it, then if I answer YES then it'll be opened in Chrome
All help/ideas is appreciated.
Thanks
David