File attachments

rangerbud249

Active member
Joined
Aug 18, 2004
Messages
27
Programming Experience
Beginner
Hi all,

I am trying to include a page in my project where the user will be able to search for a file in his/her pc and attach it to the work being submitted to the database.

1) I need to create the drop down list so the user could find his/her file.
2) I need to include this file in the save function to the database

can anyone point me in the right direction as to how to do this?

Jose
 
Is this a webForms project?
Why use a dropDownList? Are the files always in one specific folder. If so use the System.IO.Directory and System.IO.DirectoryInfo clases to iterate through the files in the directory and add them to the dropDownList.
2) Are you using a dataSet or just a datareader or what?
 
ok so actually this is what i need. ( I learned this after reading more on the subject)

I need a page where the user can Browse thru all his/her files (on their local computer). Then be able to select the file and upload it to my SQL database.

when i was refering to a drop down list I was talking about a Open File Dialog box. sorry about that.

Yes it is a web forms project.

thanx
 
im actually going to use HTML to create the form to pull the files and pass the function using VB.net

<form id="form1" method="post" enctype="multipart/form-data" runat="server">

thanks,
 
Back
Top