Welcome Guest Search | Active Topics | Sign In | Register

CallbackPanel error Options
UweD
Posted: Thursday, March 12, 2009 10:53:15 AM
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.
eo_support
Posted: Thursday, March 12, 2009 4:06:07 PM
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!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.