title: Save file in Web Application to local directory via a save dialog
body: <p>I have the following code:</p>
  
  <pre><code>    public static string ExportToXML(DataSet dts, string Filename)
      {
          string returnmsg = "";
  
          try
          {
  
              dts.WriteXml(Filename, System.Data.XmlWriteMode.IgnoreSchema);
          }
          catch (Exception err)
          {
              returnmsg = returnmsg + err.ToString();
          }
  
  
          return returnmsg;
      }
  </code></pre>
  
  <p>which will help me to convert my Dataset into a XML file. I create a button in my web application to call the above function and was expecting the following screen:</p>
  
  <p><img src="https://i.stack.imgur.com/m7m3G.jpg" alt="enter image description here"></p>
  
  <p>(of course, the Name will not be default.aspx but the filename.)</p>
  
  <p>Am I missing anything in my code that cause above dialog box not appearing when I click on the button?</p>