Public Function GetFile(ByVal fileupload As FileUpload, ByVal pathServer As String, ByVal NameID As String)
Try
Dim fileNmae As String = ""
If (fileupload.FileName) <> "" Then
Dim file As String = HttpContext.Current.Server.HtmlEncode(fileupload.FileName)
fileNmae = NameID + System.IO.Path.GetFileName(file).ToString()
If (fileupload.FileName) <> "" Then
fileupload.SaveAs(pathServer & fileNmae)
End If
End If
Return fileNmae.ToString()
Catch ex As Exception
Return ""
End Try
End Function