Guys how to get only the exact FILENAME AND EXTENSION ? EXAMPLE: Sample.Text
because in my code happend is getting the full path like this: C:\Desktop\Sample.Text .. i just want to get
is the Sample.Text..
i tried to get by getting the last index ("\") but incomes on attachments to email not working
Sub GetUploaded()
Try
If rdaUpload.UploadedFiles.Count > 0 Then
For Each file As UploadedFile In rdaUpload.UploadedFiles
Dim FileNamez = file.FileName
Dim a As New System.Net.Mail.Attachment(FileNamez, MediaTypeNames.Application.Octet)
mail.Attachments.Add(a)
Next
End If
Catch ex As Exception
lblStatusMail.Visible = True
lblStatusMail.Text ...
Go to the complete details ...