|
-
Sep 13th, 2005, 06:20 PM
#1
Thread Starter
New Member
Dynamically created Link Button how to create a event handler
Hi,
Im trying to create a downloadable list of a directory using asp.net.
Ive got it listing and navigating folders and listing files.
But I can not create a downloadable link using the h= new hyperlink method.
So i thought I would try a link button where I can add my own custom event handler.
Filename is the url of the file using file://path/path/filename
Dim h = New LinkButton
h.Text = FileName
But im lost how do i create a event handler for this???
Even a different example would be helpful to list files and folders and then be able to download or view a file.
Thanks
-
Sep 14th, 2005, 06:02 AM
#2
Re: Dynamically created Link Button how to create a event handler
You cannot use that filename because it would redirect the user to that path on his OWN computer, and not the server. You'll have to create a page which handles that file and outputs it in a stream to the client computer.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|