Perhaps someone can help with this.
I'm currently trying to upload some files to be inserted into a db table. The files are linked to a parent record id in a different table.
Appointment <= (Many) Attachments
So one appointment can have many attachments.
Within a radgrid the user enters details for a new appointment and can then upload attachment files. The attachment files are to be inserted with the new appointment record id.
The problem I have found is that the File Upload triggers before the insert of the new record (which is inserted using an entitydatasource).
My thinking is that if I can capture the insert of the record and use PostbackTriggers, I can insert the new appointment, capture the newly generated appointment id, then trigger the upload of the files which will now be able to be inserted with the appointment id.
If anyone could point me to an example where you can capture the PerformInsertButton button click on the insert form and then trigger the upload in this order it would be considerable help at the moment.
The nearest example code I can find for what I want to do seems to be Scotts code in this post :
http://www.telerik.com/community/forums/aspnet-ajax/async-upload/retain-uploaded-files-for-display-after-postback.aspx
Thanks.
I'm currently trying to upload some files to be inserted into a db table. The files are linked to a parent record id in a different table.
Appointment <= (Many) Attachments
So one appointment can have many attachments.
Within a radgrid the user enters details for a new appointment and can then upload attachment files. The attachment files are to be inserted with the new appointment record id.
The problem I have found is that the File Upload triggers before the insert of the new record (which is inserted using an entitydatasource).
My thinking is that if I can capture the insert of the record and use PostbackTriggers, I can insert the new appointment, capture the newly generated appointment id, then trigger the upload of the files which will now be able to be inserted with the appointment id.
If anyone could point me to an example where you can capture the PerformInsertButton button click on the insert form and then trigger the upload in this order it would be considerable help at the moment.
The nearest example code I can find for what I want to do seems to be Scotts code in this post :
http://www.telerik.com/community/forums/aspnet-ajax/async-upload/retain-uploaded-files-for-display-after-postback.aspx
Thanks.