Hello,
I have a radasyncupload control on my form for file uploads and have the PostBackTriggers property set to a button on the form for submitting the information. The button also performs some server side validation and eventually performs some tasks based on successful validation. The problem I have having is two fold:
1. When I click the button to submit my form, half of my code does not end up executing because the FileUploaded event fires.
2. If server side validation does complete prior and is not valid, the FileUpload still completes and the control is blank again causing the need to upload the file again.
What can I do to prevent this type of behavior? More so I really need to get problem #1 fixed but I can't seem to find a way to be sure all code fires in the proper order. Is there a way to call the FileUploaded event server side versus specifying the PostBackTriggers in the markup? This way I can ensure all my code executes in the proper order and also completes.
Thanks,
Ron
I have a radasyncupload control on my form for file uploads and have the PostBackTriggers property set to a button on the form for submitting the information. The button also performs some server side validation and eventually performs some tasks based on successful validation. The problem I have having is two fold:
1. When I click the button to submit my form, half of my code does not end up executing because the FileUploaded event fires.
2. If server side validation does complete prior and is not valid, the FileUpload still completes and the control is blank again causing the need to upload the file again.
What can I do to prevent this type of behavior? More so I really need to get problem #1 fixed but I can't seem to find a way to be sure all code fires in the proper order. Is there a way to call the FileUploaded event server side versus specifying the PostBackTriggers in the markup? This way I can ensure all my code executes in the proper order and also completes.
Thanks,
Ron