Hi,
I have a radGrid which uses automatic insert, update and delete and I use a form template to edit a row. In the edit form, I have one RadAsyncUpload which I use to allow the user to select PDF's from their local machine. The control works as it should (i.e. it loads the files into the temp folder and then moves them to the target folder when the update or insert commands are fired.
The problem I am having is I need to be able to grab the filenames and populate a table in a database once the files have been uploaded with these filenames. I only need the filename, not the complete path on the server.
I am using a sqldatasource which uses a stored procedure to do the insert/update to the table. The sqldatasource accepts a filename parameter which is used by the stored proc.
What I would like to know is:
I have tried a lot of different things and looked at various posts, but none of them seem to be helping me with this problem.
I really need to get this working and am getting very frustrated with it. Any help would be much appreciated.
Thanks
I have a radGrid which uses automatic insert, update and delete and I use a form template to edit a row. In the edit form, I have one RadAsyncUpload which I use to allow the user to select PDF's from their local machine. The control works as it should (i.e. it loads the files into the temp folder and then moves them to the target folder when the update or insert commands are fired.
The problem I am having is I need to be able to grab the filenames and populate a table in a database once the files have been uploaded with these filenames. I only need the filename, not the complete path on the server.
I am using a sqldatasource which uses a stored procedure to do the insert/update to the table. The sqldatasource accepts a filename parameter which is used by the stored proc.
What I would like to know is:
- How do I get the filename property for each file uploaded?
- How would I pass the filenames to the sqldatasource parameter so that each filename can be inserted into the table? (i am unsure as to how multiple filenames can be passed to the stored procedure, when it is only really called once - i.e. when the update button is clicked. I thought I may have to pass the filenames into the parameter as an array or something, or as csv list and handle this in the sql code, but I'm just guessing at this.)
I have tried a lot of different things and looked at various posts, but none of them seem to be helping me with this problem.
I really need to get this working and am getting very frustrated with it. Any help would be much appreciated.
Thanks