Hi,
Dim strLongFilePath As String = fileupload1.PostedFile.FileName Dim intFileNameLength As Integer = InStr(1, StrReverse(strLongFilePath), "\") Dim strFileName As String = Mid(strLongFilePath, (Len(strLongFilePath) - intFileNameLength) + 2)
please give me the above code convert in C#.
Thanks in advance, santhanam.
|
| Author: SathyaSiva 28 Jun 2008 | Member Level: Bronze | Rating:  Points: 4 |
string strLongFilePath = fileupload1.PostedFile.FileName; int intFileNameLength = Strings.InStr(1, Strings.StrReverse(strLongFilePath), "\\"); string strFileName = Strings.Mid(strLongFilePath, (Strings.Len(strLongFilePath) - intFileNameLength) + 2);
|
| Author: Santhanakrishnan 28 Jun 2008 | Member Level: Silver | Rating:  Points: 0 |
thanks a lot sathya
|