Ciao a tutti ho messo un pulsante che apre un popUp dentro la quale creo un datagrid
e poi faccio questo.


// dgCourseStudent = this._controller.GetFindCourseUserExcelDataSet();
dgCourseStudent.DataSource = this._controller.GetFindCourseUserExcelDataSet();
dgCourseStudent.DataBind();

//Creo il File XLS
System.IO.StringWriter stringWrite = new System.IO.StringWriter();
Response.Clear();
Response.AddHeader("content-disposition", "attachment;filename=CourseUser.xls");
Response.Charset = string.Empty;
Response.Cache.SetCacheability(HttpCacheability.No Cache);
Response.ContentType = "application/CourseUser.xls";

System.Web.UI.HtmlTextWriter htmlWrite = new HtmlTextWriter(stringWrite);
dgCourseStudent.RenderControl(htmlWrite);
Response.Write(stringWrite.ToString());
Response.End();


Però mi esce questo errore

"internet Explorer cannot dowloand CourseUserExportExecl.asp From Nomesito
Internet Explorer wqs not able to open this Internet site. The requested site is eithe unavailabel or cannot be fount. Please Tye Again later.


Cosa può essere?