Response.ContentType = "Application/x-msexcel" Response.AddHeader("content-disposition", "attachment; filename=Report.xls") Populate Gridview Here