I have a RadAsyncUpload control on my page used for a simple 'email' type functionality where a user can attach documents to a message.
On button click to send the message my workflow is this...
- Save the message to a database and return the id of the message
- Save the recipients of the of the message using the id that is returned from the above function.
- I then save each attachment to the db passing in the message id and return the full path of where the file should be saved (looking like this : blah/foo/blah/de/blah/
My problem is re-naming the file to the guid passed back as the from what i can see the _FileUploaded event (where i can perform this function) fires before my button click event.