Here's the general synopsis.
I'm generating a report on the server end.
1. The user goes to the page and clicks 'Generate Report' which calls server side generation
2. The RadProgressArea shows up and updates it's details correctly
3. After the report has been generated, it is saved on the server side
Where I have a problem is step 4:
4. Using either Response.TransmitFile or Response.WriteFile, send the newly generated report to the user.
I need to do some server side code, which is why I just can't do a window.location to the filename and this is where I'm running into issues.
When I change the response object to send the file, I lose the ability to:
1. Make the ProgressArea disappear (normally it automatically does on the postback with an unchanged response object)
2. Allow the user to click generate report again and repopulate the progressarea (the report still will generate fine, but the progress area remains static and doesn't reset.
My idea solution would be:
1. Click Generate Report
2. RadProgressArea appears
3. Once the report has finished generating, reset/hide/nullify the ProgressArea
4. Call server side function to send file to user.
I thought I could find a solution by registering a startup script to simply call the server side function to send the file, but then I read that AJAX doesn't have that functionality.
I hope you understand the theory behind this, and I can provide some code if needed.
I'm generating a report on the server end.
1. The user goes to the page and clicks 'Generate Report' which calls server side generation
2. The RadProgressArea shows up and updates it's details correctly
3. After the report has been generated, it is saved on the server side
Where I have a problem is step 4:
4. Using either Response.TransmitFile or Response.WriteFile, send the newly generated report to the user.
I need to do some server side code, which is why I just can't do a window.location to the filename and this is where I'm running into issues.
When I change the response object to send the file, I lose the ability to:
1. Make the ProgressArea disappear (normally it automatically does on the postback with an unchanged response object)
2. Allow the user to click generate report again and repopulate the progressarea (the report still will generate fine, but the progress area remains static and doesn't reset.
My idea solution would be:
1. Click Generate Report
2. RadProgressArea appears
3. Once the report has finished generating, reset/hide/nullify the ProgressArea
4. Call server side function to send file to user.
I thought I could find a solution by registering a startup script to simply call the server side function to send the file, but then I read that AJAX doesn't have that functionality.
I hope you understand the theory behind this, and I can provide some code if needed.