send file and change button image in one request

Discussion in 'ASP .Net' started by Jacek Francuz, Apr 14, 2005.

  1. Hi!

    How can I change button image end send file to Client in one request?



    I try to change image in first step and I add onstartupscript:
    "Form1.submit()" and then in second step I send file, but no all images
    appears on buttons (they don't have time to download). So it's not good
    solution.



    I send file using:



    Response.Clear();

    Response.ContentType="application/octet-stream";

    Response.AddHeader("content-disposition","attachment; filename=c:\x.txt");

    Response.TransmitFile(file_name);

    Response.End();



    Thanks.

    Jacek Francuz
     
    Jacek Francuz, Apr 14, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Brian Birtle
    Replies:
    2
    Views:
    2,182
    John Saunders
    Oct 16, 2003
  2. =?Utf-8?B?ZXN3YW5zb24=?=

    asp.net form to send a request to a put request

    =?Utf-8?B?ZXN3YW5zb24=?=, Oct 29, 2004, in forum: ASP .Net
    Replies:
    9
    Views:
    635
    =?Utf-8?B?ZWpz?=
    Nov 9, 2004
  3. =?Utf-8?B?S2V2aW4gQnVydG9u?=

    Pre-Send Request Headers, Pre-Send Request Content

    =?Utf-8?B?S2V2aW4gQnVydG9u?=, Dec 31, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    1,126
    =?Utf-8?B?S2V2aW4gQnVydG9u?=
    Dec 31, 2004
  4. Nathan Sokalski
    Replies:
    3
    Views:
    1,985
    Larry Lard
    Nov 23, 2005
  5. =?Utf-8?B?Y2xvc2UgYnJvd3NlciB3aXRob3V0IExvZ291dA==

    Send Contents To Client One By One in an Event

    =?Utf-8?B?Y2xvc2UgYnJvd3NlciB3aXRob3V0IExvZ291dA==, Feb 8, 2006, in forum: ASP .Net
    Replies:
    2
    Views:
    299
    =?Utf-8?B?Y2xvc2UgYnJvd3NlciB3aXRob3V0IExvZ291dA==
    Feb 9, 2006
Loading...

Share This Page