Hi,
I am trying to export some data from db to excel. In case there is some issue while exporting I want to handle that in a catch block and show a message to the user. If there is an exception, I dont want to send any response to the client ( as in no excel
sheet which is incomplete or has errors should not be sent). Either complete response or no response at all. How do I go about it? One more thing!
in the catch block i am doing
Response.Clear();
Response.BufferOutput = false;
Response.ClearContent();
This dosent work. Event after the exception has occurred, there is a different excel sheet (named as that of the aspx page) with complete html is rendered ( which should not be the case). Any other work around?
Go to the complete details ...