The following piece of code is being used to export HTML to excel.
HttpContext.Cur rent.Response.C ontentType = "applicatio n/vnd.ms-excel"
HttpContext.Cur rent.Response.A ddHeader("conte nt-disposition",
"attachment;fil ename=ABC.xls")
HttpContext.Cur rent.Response.W rite(strHTML)
HttpContext.Cur rent.Response.E nd()
However when the user tries to save it the Default File Type is Web
Page(*.htm; *.html)
How do we change the Default File Type to Excel
HttpContext.Cur rent.Response.C ontentType = "applicatio n/vnd.ms-excel"
HttpContext.Cur rent.Response.A ddHeader("conte nt-disposition",
"attachment;fil ename=ABC.xls")
HttpContext.Cur rent.Response.W rite(strHTML)
HttpContext.Cur rent.Response.E nd()
However when the user tries to save it the Default File Type is Web
Page(*.htm; *.html)
How do we change the Default File Type to Excel
Comment