Hi,
I am using the follwoing code for generating an Excel file
Code:
HttpContext.Current.Response.Clear()
HttpContext.Current.Response.ClearContent()
HttpContext.Current.Response.ClearHeaders()
HttpContext.Current.Response.Charset = ""
HttpContext.Current.Response.Buffer = True
HttpContext.Current.Response.ContentType = "application/vnd.ms-excel"
HttpContext.Current.Response.AddHeader("Content-Disposition", "attachment; filename=" + lstrExcelFileName)
HttpContext.Current.Response.Write(_strBuild)
HttpContext.Current.Response.Flush()
HttpContext.Current.Response.End()
the above code works well,but it is prompting the user for saving an excel file.
I dont want that . Is there any mechanism for saving an excel file with out prompting the user