something like?
Code:
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnUpload.Click
If FileUpload1.HasFile Then
Try
If System.IO.File.Exists("C:\test\" & FileUpload1.FileName) Then
lbl1.text = "file exsists try another"
Else
FileUpload1.SaveAs("C:\test" & _
FileUpload1.FileName)
End If
Catch ex As Exception
FileUploadReport.Text = "Faild Because:<br/>" & ex.Message
End Try
FileUploadReport.Text = "File uploaded : <br/>" & FileUpload1.PostedFile.FileName
Else
FileUploadReport.Text = "Please select a file before clicking" & " the 'Upload' button"
End If
End Sub