what should i do..to design database for uploading files/documents from user..? what field i should create?please.. :?:

Using a HTML Input box of type file you can upload a single file to the sql database or store the file in a hard file in a folder then place details in the database. Using the input box you can access information about the uploaded file.

Say you give the input box an id of uploadfile (e.g. <input type="file" id="uploadfile" />). When this page's form is submited you can grab details about the file in ASP.NET using the file's PostedFile method (e.g. uploadfile.PostedFile.SaveAs("c:\uploads\" + uploadfile.PostedFile.FileName))

Check out Microsoft's MSDN for detailed information about using the file input box and how to use the PostedFile methods for them.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.