I would like to add functionality to export certain custom data from an ajaxified page. On the user clicking a button, the logic would normally look something like:
Response.Clear()
Response.ContentType = "application/vnd.ms-excel"
Response.AddHeader("Content-Disposition", "attachment; filename="Export.xls")
....
Response.Flush()
Response.Close()
I would like to implement the same functionality with RadAjaxManager, and have Excel open in a new window leaving the original window open and unchanged. I know I cannot use the Response object in this way with RadAjax. Is there an alternative to doing this without posting back?
Response.Clear()
Response.ContentType = "application/vnd.ms-excel"
Response.AddHeader("Content-Disposition", "attachment; filename="Export.xls")
....
Response.Flush()
Response.Close()
I would like to implement the same functionality with RadAjaxManager, and have Excel open in a new window leaving the original window open and unchanged. I know I cannot use the Response object in this way with RadAjax. Is there an alternative to doing this without posting back?