MrExcel 0 Newbie Poster

Hi, I export label text inot excel. It works fine but I have some checkbox and textboxs on the lebel. When I export the label text inot excel all the checkbox and textbox also export as it is in the excel. Please help me to export only textboxs value in excel not the textbox

Given below is code to export to excel....


Response.Clear();
Response.AddHeader("content- disposition", "attachment;filename=DlDetails.xls");
Response.Charset = "";
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.ContentType = "application/vnd.xls";
StringWriter stw = new StringWriter();
HtmlTextWriter htextw = new HtmlTextWriter(stw);
lblDLDetails.RenderControl(htextw);
Response.Write(stw.ToString());
Response.End();