Posted on: 9/16/2015 2:56:25 PM | Views : 822

GridView GridView2 = new GridView(); GridView2.AllowPaging = false; // CASE: QC-1332 : Sreenath : START: 1 Sep 2015 GridView2.ShowFooter=true; // CASE: QC-1332 : Sreenath : END: 1 Sep 2015 GridView2.DataSource = dtpcmrpt; GridView2.DataBind(); Response.AddHeader("content-disposition", "attachment;filename= " + filename + ".csv"); Response.Charset = "UTF-8"; Response.ContentEncoding = System.Text.Encoding.UTF8; Response.ContentType = "application/text"; StringBuilder sb = new StringBuilder(); sb = ConvertGridviewtoCSV(sb, GridView1); sb = ConvertGridviewtoCSV(sb, Gridview2); Resp ...

Go to the complete details ...