Hello everybody!
I am running into a problem. I export my gridview into ms-word. Everything is working fine in firefox. But in IE8, the name of the word file is the name of my web page. Let say download.aspx.
I am using the code like:
HttpContext.Current.Response.ContentType = "application/msword";
HttpContext
//Application specific code here
StringWriter stringWrite = new StringWriter();HtmlTextWriter htmlWrite = new HtmlTextWriter(stringWrite);HttpContext.Current.Response.Write(strHTMLContent.ToString());HttpContext.Current.Response.End();HttpContext.Current.Response.Flush();
Waiting for your reply!
Pervaiz Iqbal Niazi.
contentControl.RenderControl(htmlWrite);
strHTMLContent.Append(stringWrite.ToString());
.Current.Response.AddHeader("Content-Disposition", "inline;filename=" + strFileName.Replace(" ", "_"));
Response.AddHeader( "content-disposition", "attachment; filename=MyDoc.doc");
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)