Answered by:
AsyncFileUpload access controls after completed uploading

Question
-
User1927181471 posted
Hi
I want to show a message to user in a label on the page after uploaded file completed but it seems that UploadedComplete event of AsyncFileUpload does not update the text property of the label control
please give me an example how to do that in visual basic code for aspx page
Monday, May 25, 2015 4:47 PM
Answers
-
User177399542 posted
Hi
samerselo You can use Javascript or Jquery to show success message in Ajax control toolkit AsyncFileUpload control.
Kindly follow this article about how to call jquery function from code behind in asp .net. This sample is showing alert message from server side. You can easily set label value:
Follow this: http://forums.asp.net/t/1116345.aspx?how+to+set+label+value+in+javascript
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Tuesday, May 26, 2015 6:24 AM -
User-1506965535 posted
please give me an example how to do that in visual basic code for aspx pageYou should read about ajax document from here first
After the upload is finished it should have a return message like "upload complete" and this message should be handled in your ajax function like :
success : function(data){ if(data == "upload complete"){ alert("success"); } }
I haven't tested it, but I guess it might work.
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Tuesday, May 26, 2015 9:18 AM
All replies
-
User177399542 posted
Hi
samerselo You can use Javascript or Jquery to show success message in Ajax control toolkit AsyncFileUpload control.
Kindly follow this article about how to call jquery function from code behind in asp .net. This sample is showing alert message from server side. You can easily set label value:
Follow this: http://forums.asp.net/t/1116345.aspx?how+to+set+label+value+in+javascript
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Tuesday, May 26, 2015 6:24 AM -
User-1506965535 posted
please give me an example how to do that in visual basic code for aspx pageYou should read about ajax document from here first
After the upload is finished it should have a return message like "upload complete" and this message should be handled in your ajax function like :
success : function(data){ if(data == "upload complete"){ alert("success"); } }
I haven't tested it, but I guess it might work.
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Tuesday, May 26, 2015 9:18 AM