When I start the postback using __doPostBack, the file is created and returned to the user for upload to HttpContext.Current.Response
.
Since I am changing Response
, the page, including its javascript values, is not changing
But when I don’t have a file for output, the page refreshes (due to postback) and the javascript modification on the page is lost.
How can I “stop” the postback from continuing and save the current page? I cannot use async postback because I need a postback so that the user can upload the file.
EDIT: more information after some questions in the comments:
- The file is requested in the webservice request. A web service is needed to complete a heavy request to determine if a file will be created. I Assume this happens only once.
- The user can drag and drop some filters that will be used in the request file. If the file is not accessible, the user should be able to change its filters, therefore, the page should not be changed.
Erik dekker
source share