Rank: Advanced Member Groups: Member
Joined: 8/11/2008 Posts: 37
|
How can I handle the following problem: I click on a button to build a txt-file for download. At the end is "Response.BinaryWrite(byteArray);". I wont to use a CallbackPanel to disable the button at this time and showing a LoadingHTML. But I get an error because this PostBack is not correct.
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
You can not use the same page to do Response.BinaryWrite with the CallbackPanel, CallbackPanel relies on all controls in the page being regularly rendered and a "normal" page life cycle to function. If you wish to handle download, you will need to use a separate page.
Thanks!
|