This is a migrated thread and some comments may be shown as answers.

Downloading file problem with ajax

1 Answer 69 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Bharani Mani
Top achievements
Rank 1
Bharani Mani asked on 08 Apr 2010, 11:50 PM
Hello,
          I have a ASP.NET AJAX tree control whose data need to be downloaded to a file from server. I have a splitter control which has the tree control and a button. OnClick of that button, I save the file to disk on the server and redirect to a different page and call Response.TransmitFile(name) to send the file to client;. It works fine on local server. But on remote server, IE security blocks the file from downloading. But I clicked on the information bar in IE and clicked Download File, the page is refreshed but the file is not downloaded. All data in tree control is lost.

Any suggestions or clues..

Thanks,
Bharani

1 Answer, 1 is accepted

Sort by
0
Bharani Mani
Top achievements
Rank 1
answered on 12 Apr 2010, 04:09 PM
I fixed the problem myself. I put that button's id in PostBackTrigger and the file is saved without any security warning.
Tags
Ajax
Asked by
Bharani Mani
Top achievements
Rank 1
Answers by
Bharani Mani
Top achievements
Rank 1
Share this question
or