Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
3
Reply
Import the excel file using file upload option
narasiman rao
Aug 28 2014 4:33 AM
954
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.
Reply
Upload Source Code
Select only zip and rar file.
Post
Reset
Answers (
3
)
after login user redirected to pages
Windows CE application to Print barcodes to Zebra Ql220