File transfer useing <a in VB

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a need to allow a user to transfer or download a file from an ASPX
screen.
I know that it is an easy function HTML using <a code.

My ASPX is written in VB.

Thanks
 
That is still HTML code, I need VB code.

The file name is going to be different for each user.

I would like to put code on the page that the user would be able to download
there file, with a button or a link.
 
Since you gave no futher replies to my question, does that mean that what I
want to do in VB ASPX is not possable?
 
If you use an <asp:Hyperlink> control, you can set properties
programatically with VB. A Hyperlink control renders as an <a> tag, it
really is just that simple.

Was there something special you were trying to achieve, like restrict
who can download a file, or somehow control the bytes sent back to the
user with VB?
 
Thanks, for your help.
What I want to do is generate a unique file name for each customer. I want
to create a link so the customer can download the file created for them.
 
Hi Doc:

I think what you are trying to do is build a link that the user can
click to download a file you'll create on the fly, just for them.

Here is one approach using an ASHX handler. In this code the author is
using parameters passed in the query string to pull content from a
database field, but you could change that to pull from disk, etc.
http://weblogs.asp.net/cazzu/archive/2003/08/27/25568.aspx

Does that help?
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top