Professional Web Applications Themes

UI behavior - ASP.NET General

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 ...

  1. #1

    Default UI behavior

    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


    Arthur Guest

  2. #2

    Default Re: UI behavior

    Here's the simplest example I've seen for such a situation:
    http://www.aspnetpro.com/NewsletterArticle/2003/08/asp200308bm_l/asp200308bm_l.asp

    --
    I hope this helps,
    Steve C. Orr, MCSD
    http://Steve.Orr.net
    Hire top-notch developers at http://www.able-consulting.com



    "Arthur Yousif" <net> wrote in message
    news:eVVEj%phx.gbl... 

    to 

    All 
    like 
    putting 
    but 


    Steve Guest

  3. #3

    Default Re: UI behavior

    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

    "Steve C. Orr, MCSD" <net> wrote in message
    news:phx.gbl... 
    http://www.aspnetpro.com/NewsletterArticle/2003/08/asp200308bm_l/asp200308bm_l.asp [/ref]
    have [/ref]
    (page2.aspx) [/ref]
    called, 
    > All 
    > like 
    > putting 
    > but [/ref]
    hit. [/ref]
    it's 
    >
    >[/ref]


    Arthur Guest

Similar Threads

  1. What did I do? swf behavior
    By Mary in forum Macromedia Flash
    Replies: 4
    Last Post: May 1st, 08:22 PM
  2. Behavior help
    By adamd_mc webforumsuser@macromedia.com in forum Macromedia Director Lingo
    Replies: 1
    Last Post: October 11th, 09:27 PM
  3. very odd behavior of X11 GUI
    By Cristi BODNARIUC in forum Sun Solaris
    Replies: 0
    Last Post: July 18th, 07:54 AM
  4. Looking for a behavior
    By Kirk Zelinske in forum Macromedia Dreamweaver
    Replies: 0
    Last Post: July 9th, 07:22 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139