UI behavior

  • Thread starter Thread starter Arthur Yousif
  • Start date Start date
A

Arthur Yousif

Hi,

I have a situation and I cannot figure out why it's not working. I have a
page (page1.aspx) with a LinkButton that calls another page (page2.aspx) to
download a report in pdf format.

In page1.aspx.cs, I trap for lnkSavePdf_Click(...) and when it's called, I
then call page2.aspx by using
Response.Recdirect(sUrl,false). I use false to keep the code moving. All
this works fine except for the following.

I have a Literal control on the page that I'd like to update with text like
"Downloading PDF, please wait..." but it never updates. I've tried putting
the pdfInfo.Text = "Downloading PDF, please wait..." in multiple places but
the page never shows it. I've run in debug mode and those lines are hit.
Any ideas what's going on and why it's not working? I'm pretty sure it's
my
lack of knowledge on some of this, so any wisdom from you would greatly
appreciated.

Arthur
 
Thanks Steve. What I'd really like to do is have the progress on the same
page. Is that doable at all? The download page has a section on the bottom
where I'd like to display messages to the user and it works if I post them
through a registered script, however, once a message like "Downloading PDF,
please wait..." is posted, I can't get rid of it as I can't seem to know
when page2.aspx is finished.

Arthur
 
Back
Top