I have a fileupload control in my web page, through which multiples files are uploaded one by one.And those multiple uploaded files are shown in 'Gridview' below the Fileupload control with Download and Delete button.Now, I want to save all the uploaded files coming in Gridview in my Database column (named "FileName") Separated by comma for particular column ID.i.e, If Gridview contains 3 uploaded files: abc.docx, xyz.pdf, aaa.txt then all the 3 files should also save in database column (named "FileName") for a particular ID.DB table is:
ID Address FileName 1 Aa Abc.txt, xyz.docx 2 Bb 3 Cc 4 dd
[URL] .... I am referring to the link given mentioned above, i want to save image details into database of each file, if i select two files i want to save filename in database in each row. ist file in 1 row , second file in next row with file name.
I want to upload images in to a folder in my project and save the URL in the database.
When you add a record into my database you provide title, date added and some other details and there it a file upload control which you browser to a image and it saves the image to a folder in my project, it all works, the record is added and the image is uploaded into the folder, but the problem I have is that there is no link from the record to the image, there is no URL path saved in the record. How do I save the image in the folder and save the URL of the image to the record?
I'm using details view to insert the records and using grid view to view the records.
I am developing audio related project for that i have stored movie names with mp3 file paths in database I am displaying movie names in grid view after clicking on movie name related mp3 file paths will be display in details view i am unable to play that files in details view how to do this ? Here i am storing original mp3 files in one folder in solution explorer and paths in database
I have one AsyncFileUpload control ,one Attach button,one Listbox and Save button.
When Users browse the file and click the attach button, filename must be added to listbox. So in this way the user has the option to add upto multiple filenames to listbox. For this i have written the following code
this is source code
In Attach button click event i added the filename to listbox and saved the Asyncfileupload controls in different session variable.
When user clicks on save button all files has to be saved in application folder and for this i wrote the following code.
But iam unable to save all the files . Suppose i added two AsyncFileupload controls to session variables, only last file i,e. 2nd file can only be saved and couldn't get first file.
So I would like my solution to save in the same folder as the rest of my files. I am a win forms developer so web is new to me.
1) Is there any reason why I shouldn't do that for web.
2) Second how do I do that. I know that I can change the solution's saving location by changing ToolsOptionProjects & SolutionsProject's Location. However, I just want it to use the location of the new website I create and not that specification.