hi,
i have problem regarding coding the problem is that when i upload excel file its not show excel data in grid view
this is my coding
Public Sub uploadexcel()
Dim FilePath As String = "~/Userfiles/"
Dim filename As String = String.Empty
If FileUploadToServer.HasFile Then
Try
Dim allowdFile As String() = {".xls", ".xlsx"}
'Here we are allowing only excel file so verifying selected file pdf or not
Dim FileExt As String = System.IO.Path.GetExtension(FileUploadToServer.PostedFile.FileName)
'Check whether selected file is valid extension or not
Dim isValidFile As Boolean = allowdFile.Contains(FileExt)
If Not isValidFile Then
lblMsg.ForeColor = System.Drawing.Color.Red
lblMsg.Text = "Please upload only Excel"
Else
' Get size of uploaded file, here restricting size of file
Dim FileSize As Integer = FileUploadToServer.PostedFile.Con ...
Go to the complete details ...