title: How can I rename a file in ASP.NET?
body: <p>In my project I want to rename the file before it is updating. For example a file in my system like <code>Mycontact.xls</code>. I want to rename it as <code>sasi.xls</code> (it is an excel file). How can I write the code in ASP.NET?</p>
  
  <p>Actually I am using a fileupload control to get the file in and rename the file and upload the renamed file in a folder which is in <a href="http://en.wikipedia.org/wiki/Microsoft_Visual_Studio#Other_tools" rel="noreferrer">Solution Explorer</a>.</p>