Write File as Response in C# in ASP.NET
<p>I have an ASP.NET Web Forms app written in C#. On one of the screens, the user can click a button. When that button is clicked, I need to generate some XML and open it in a custom app. I'm trying to understand how I can take the XML that I have generated, and automatically open the app that can understand it.</p>

<p>The app that uses this XML is a custom app. This app uses a proprietary file format. The file is really just XML. But, I've noticed that the file extension is .ctm. </p>

<p>Is there a way for me to just open this XML in the custom app when someone presses the button in my ASP.NET web form?</p>

<p>Thank you!</p>
