Possible Duplicate:
Get file name from a path string in C#
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?