> 
> **Possible Duplicate:**  
> 
> [Get file name from a path string in C#](https://stackoverflow.com/questions/6921105/get-file-name-from-a-path-string-in-c-sharp) 
> 
> 
> 

using : **c# asp.net vs10**

suppose, filepath = **"C:\Sys\Axa\_Excel\Axa123.xlsx"**. 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?