I tried all king of things in my Code but no luck for me.
My Code looks like this.
DataTable ExcelTable = (DataTable)Session[AppConstants.SK_EXCEL_TABLE];
string attachment = "inline; filename= "+ AppConstants.EXCEL_FILE_NAME +".xls";
//Response.CacheControl = "no-cache";
Response.Buffer = true;
Response.ContentType = "application/vnd.ms-excel";
Response.Charset = "";
this.EnableViewState = false;
Can anyone suggest me some thing to solve this issue.