Click here to Skip to main content
15,892,839 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
HI
This is my problem, i have made a webapp where i can upload file/s. The data relating to the uploaded file is stored in a database and the actual file on a folder on the server. Now i want to have all the files uploaded displayed in a data grid or something similar where a row would contain the following data, filename, contenttype,contentlength and date. I want to also be able to click on filename in the grid and then be offered the option to open the file and view in web browser or save to hard disk. Any idea's on how i can achieve this?


Also, i would like to be able to download (all files) or selected (files)if its possible. And i would like to know(for video/audio files) if there's a sort of player that can be embedded in the web page and how would you get selected files to play in it.

Thanks
Posted

1 solution

Hi,
You can use repeater control.
In repeater control you can place labels or hyperlink.
And on databind event find control and display file name coming from database and on click event call javascript which will open one hidden DIV tag, which should have the options as you specified.

If i am not clear to you or you need some more info then please revert back.

Regards,
Jitendra
 
Share this answer
 
Comments
Ashy-G 12-May-10 4:41am    
Is it possible for you to give me an example please, i havent used repeater control before and im a newbie programmer, kinda lost
Ashy-G 1-Jul-10 20:24pm    
Reason for my vote of 5
worked 100%

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900