title: getting file name from file path C#
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/6921105/get-file-name-from-a-path-string-in-c-sharp">Get file name from a path string in C#</a>  </p>
  </blockquote>
  
  
  
  <p>using : <strong>c# asp.net vs10</strong></p>
  
  <p>suppose, filepath = <strong>"C:\Sys\Axa_Excel\Axa123.xlsx"</strong>. filepath is a string variable. file can be from whatever location. but the file will be always xls/xlsx/csv. How i have to get the file name only from the filepath which is just a string?</p>