Friday, January 29, 2010

Asp Upload 3.0.0.6 Serial How Do I Upload A File To The Client Using Asp?

How do i upload a file to the client using asp? - asp upload 3.0.0.6 serial

I would like to create a txt file on the client (I would not save to the server, if possible), then I go to my client and website. How can I do? I find things like invite you on the net. However, I would like the customers expense.

2 comments:

Rex M said...

Who would be "free download" and the user would type a link to the file server.

Edit: After the button to redirect the file instead of a link. The easiest way is probably to use JavaScript ... Write a function that the file you want to download, and if you call redirects on the button to the function.

vbslinge... said...

I think what we do is listen to the client program.

What I describe here, had begun in the case of Button_Click and displayed in a pop-up on the screen that gives customers the opportunity to save open or cancel. Remember - there is no site that can just write code on a client computer - as a Trojan horse (yes, yes, some people are stupid and you can do, but don 'does not assume that writing code ).

However, you should use this code in the way that I want to.

Use the Response object, you would like Response.Write.
But instead of doing this:
MyStream BinaryStream = SomeFunctionToGetStream
Response.BufferOutput = true
Response.ClearHeaders ()
Response.ClearContent ()
Response.Write ( "Content-Disposition", "...
Response.AddHeader ( "Content-Length", myStream.length)
Response.BinaryWrite (myStream);
Response.Flush

I probably am missing a command or two, because I so in my head - I dTo put an end to this particular form of writing code, but a lot more - and not just wrapped her in a class. Anyhoo - you will find BinaryWrite and other commands, and you should be able to find a genuine example.

Post a Comment