I am trying to export to database tables details into Multiple Worksheets Inside a Single Excel File and I got export working correct, but the issue with multiple DataTable Filtering with First DataTable Email Id.
Below is my C# Code:
protected void Button1_Click(object sender, EventArgs e)
{
DataSet ds = new DataSet();
DataTable dt = new DataTable("Registration Details");
DataTable dt1 = new DataTable("Education Details");
dt = bl.Get_Registrationdetailsbydate1(bo);
dt1 = bl.Get_Registrationdetailsbydate2(bo);
ds.Tables.Add(dt);
ds.Tables.Add(dt1);
ExcelHelper.ToExcel(ds, "Users.xls", Page.Response);
}
I have two tables Registration_table and Education_table and also have two DataTable Registration details and Education details.
I need result base on email id's of first DataTable(dt) that first DataTable emails id's users only should come into second DataTable that means education details based on email ids.
Suppose below is first DataTable details.
sno email mobile city
1 [email protected] 123456789 hyderabad
I need result of second DataTable details like below single users.
sno email education
1 [email protected] MBA
And I am using two stored procedures for first getting registration details and second Education Details.
Registration_table.