Question: how to export data from repeater to excel in asp.net using c#?
Answer: protected void ExportToExcel(object sender, EventArgs e) Response.Clear(); Response.Buffer = true; Response.AddHeader("content-disposition", "attachment;filename=RepeaterExport.xls"); Response.Charset = ""; Response.ContentType = "application/vnd.ms-excel"; StringWriter sw = new StringWriter();