I have been researching on this for a quite a long time yet with no results. I use AsyncfileUpload control to upload excel file. When user successfully uploads excel file I do some database operations and other validation in UploadComplete event. If there
is a validation error i need to be able to notify user. Error text varies and is based on the validation logic.
How to do i update label text from UploadComplete event. I am trying all possible ways with no success.
NOTE: I tried to force postback but the Upload Complete event firing twice
if(ValidateFileExtension()==false) { lblMesg.Text="Error Text 1 ";
}
} catch(Exception err) { StringBuilderLogMessage=null; LogMessage=newStringBuilder(); //Frame the text for logging
LogMessage.Append(", ");
LogMessage.Append(Environment.NewLine); LogMessage.Append("There is error in ProcessInputs() Function of ExcelAddInventoryPage "); LogMessage.Append(Environment.NewLine); LogMessage.Append("Error Message - "); LogMessage.Append(e.ToString());
rcirigiri
Member
20 Points
71 Posts
How to update label after server side validation using AJAX AsyncUpload
Feb 13, 2012 01:02 PM|LINK
I have been researching on this for a quite a long time yet with no results. I use AsyncfileUpload control to upload excel file. When user successfully uploads excel file I do some database operations and other validation in UploadComplete event. If there is a validation error i need to be able to notify user. Error text varies and is based on the validation logic.
How to do i update label text from UploadComplete event. I am trying all possible ways with no success.
NOTE: I tried to force postback but the Upload Complete event firing twice
How can i solve this issue?
Client Side:
Server Side Code
chetan.sarod...
All-Star
65759 Points
11153 Posts
Re: How to update label after server side validation using AJAX AsyncUpload
Feb 14, 2012 02:43 AM|LINK
http://weblogs.asp.net/manojkdotnet/archive/2009/10/16/asynfileupload-control-and-its-validation.aspx
Senior Software Engineer,
Approva Systems Pvt Ltd, Pune, India.
Song-Tian - ...
All-Star
43697 Points
4304 Posts
Microsoft
Re: How to update label after server side validation using AJAX AsyncUpload
Feb 16, 2012 06:50 AM|LINK
Hi,
Please refer to the example at: http://forums.asp.net/p/1603720/4091630.aspx#4091630.
Feedback to us
Develop and promote your apps in Windows Store