I tried to convert my dataset into excel and download that excel .I got my required excel file.But System.Threading.ThreadAbortException was raised every excel download. Ho
For me it helped to register a button that calls code behind code as a postback control.
protected void Page_Init(object sender, EventArgs e) { ScriptManager.GetCurrent(this.Page).RegisterPostBackControl(btnMyExport); }