My application produces a very large report that has the requirement of being exported (Excel, PDF, CSV). From reading several threads here about problems with exporting large files and running into the issue myself, I took the approach to limit what is being exported by changing the page size and setting Ignorepaging to false. What I'd like to do is post back an message/alert something to the user to let them know that what they tried to export was too large and the records were limited to x number. My problem is that no matter what I've tried a message doesn't get displayed. My app has user control on the page that is meant to display messages that isn't working (pgMessage in code). I've tried adding a literal control to the bottom of the Grid as suggested in a form thread. That didn't work, I've tried using RegisterStartupscript with an alert. That hasn't worked. I've moved all of the above to different events like ItemCommand, Exporting, Pre_Render but I haven't found any that works. My grid is ajaxified and I've followed the manuals approach on exporting an ajaxified grid.
Any one have any suggestions?
CodeBehind: I've commented out most to the code I've tried. The last attempt was with RegisterStartupScript.