santosh_131
попробуйте выполнить следующий код
StringWriter stringWrite = new StringWriter();
HtmlTextWriter htmlWrite = new HtmlTextWriter(stringWrite);
Label lbl1=new Label1();
GridView gv1 = new GridView();
GridView gv2 = new GridView();
string fileName="abc.xls";
Response.Clear();
Response.Charset = "utf-8";
Response.ContentType = "application/vnd.ms-excel";
Response.AddHeader("Content-Disposition", "attachment;filename=\"" + fileName + "\"");
Table table = new Table();
TableRow tr1 = new TableRow();
TableRow tr2 = new TableRow();
TableRow tr3 = new TableRow();
TableCell cell1 = new TableCell();
TableCell cell2 = new TableCell();
TableCell cell3 = new TableCell();
lbl1.Text="Company abc";
gv1.DataSource = data1;
gv1.DataBind();
gv2.DataSource = data2;
gv2.DataBind();
cell1.Controls.Add(lbl1);
tr1.Cells.Add(cell1);
cell2.Controls.Add(gv1);
tr2.Cells.Add(cell2);
cell3.Controls.Add(gv2);
tr3.Cells.Add(cell3);
table.RenderControl(htmlWrite);
Response.Write(stringWrite.ToString());
Response.End();
htmlWrite.Dispose();
stringWrite.Dispose();
gv1.Dispose();
gv2.Dispose();