title: Change file name of FILE UPLOAD control
body: <p>This is my code:</p>
  
  <pre><code>if (FileUpload1.HasFile)
  {
      try
      {
          string file_name = Path.GetFileName(FileUpload1.FileName);
          FileUpload1.SaveAs(Server.MapPath("~/FoodImage/1/") + file_name);
          Label1.Text = "File Upload";
  
      }
      catch(Exception)
      {
          Label1.Text = "Can not Upload File!";
  
      }
  }
  </code></pre>
  
  <p>that code browse the for example "logo.jpg" and save in my server,but i want before to save change the file name,for example Browse button press and choose "logo.jpg" and click open then change the main file name "logo.jpg" to "L1.jpg" and save.</p>