My code as follows
protected void btnimport_Click(object sender, EventArgs e)
{
string path = System.IO.Path.GetFileName(fileupload15.PostedFile.FileName);
fileupload15.PostedFile.SaveAs(Server.MapPath("~/Import_Excel/" + path));
GvSch.DataSource = ImportExcelXLS(path, false, out message);
GvSch.DataBind();
}
i create a new folder name called Import_Excel in that folder i want to save the selected excel file.
In run mode i click the choose file and select the excel file and click import button
When i run the above code shows error as follows
ilistsource does not contain any data sources
please help me.
what is the mistake from my above code.