Hi,
try this,
<asp:fileupload id="FileUpload1" runat="server" xmlns:asp="#unknown" />
<asp:button id="Button1" runat="server" text="Send File" onclick="Button1_Click" xmlns:asp="#unknown" />
<asp:gridview id="GridView1" runat="server" xmlns:asp="#unknown" />
protected void Button1_Click(object sender, EventArgs e) {
var excelReader = new ExcelDataReader(FileUpload1.FileContent);
FileUpload1.FileContent.Close();
DataSet wb = excelReader.WorkbookData;
DataTable dt = excelReader.WorkbookData.Tables[0];
GridView1.DataSource = dt.AsDataView();
GridView1.DataBind();
}
Best Luck
Happy Coding:)