D
dana lees
Hello,
I am developing a c# asp.net application.
I am trying to export a datagrid to excel by using:
Response.Clear();
Response.Buffer= true;
Response.ContentType = "application/vnd.ms-excel";
Response.AddHeader("Content-Disposition", "inline;");
Response.Charset = "";
It works great on some computers, but on other computers it opens the excel
sheet with the login page inside (my login page with a textbox for username
and a textbox for password). I have checked the security settings of the
browser on both computers (where it works and doesn't work) and they are
exactly the same. The browser version is also exactly the same.
Any ideas what could be the problem?
Thanks...
I am developing a c# asp.net application.
I am trying to export a datagrid to excel by using:
Response.Clear();
Response.Buffer= true;
Response.ContentType = "application/vnd.ms-excel";
Response.AddHeader("Content-Disposition", "inline;");
Response.Charset = "";
It works great on some computers, but on other computers it opens the excel
sheet with the login page inside (my login page with a textbox for username
and a textbox for password). I have checked the security settings of the
browser on both computers (where it works and doesn't work) and they are
exactly the same. The browser version is also exactly the same.
Any ideas what could be the problem?
Thanks...