title: save as dialog to save TextBox Data into a file
body: <p>I have one TextBox, It has some data.
  There is a Button. So When I click the button, "save as " dialog should popup to save the text TextBox Data into a file.</p>
  
  <p>I have tried various ways, but getting errors n error. Here I am giving you brief idea how I am writing code, If I am wrong please make me correct.
  Or is there any other way to save TextBox Data into a file od my desired path.</p>
  
  <pre><code>protected void ButtonIDSaveAs_Click(object sender, EventArgs e)
      {
          SaveFileDialog saveFileDialog1 = new SaveFileDialog();
          saveFileDialog1.Title = "Save an Image File";
          saveFileDialog1.ShowDialog();
  
          if (saveFileDialog1.FileName != "")
          {
              System.IO.FileStream fs =
                  (System.IO.FileStream)saveFileDialog1.OpenFile();
  
              fs.Close();
          }
      }
  </code></pre>
  
  <p>Thanks
  Vivek</p>