Breaking News

Editors Picks

Thursday, June 21, 2012

How to export aspx page to excel


protected void Button1_Click(object sender, EventArgs e)
{ 
   string attachment = "attachment; filename=filename.xls";
   Response.ClearContent();
   Response.AddHeader("content-disposition", attachment);
   Response.ContentType = "application/ms-excel";
}
Read more ...

Contact Us

Name

Email *

Message *