Hello,
I readed this article about checking the filesize on clientsite: http://www.telerik.com/help/aspnet-ajax/upload_howtoclientfilesize.html
Now I customized this code for my project:
It work's, but how can I set a custom validator to "false" after I canceld the request to show the user an error message??
My cumstom validator looks like this:
Thanks in advance for your help.
Regards
Dirk
I readed this article about checking the filesize on clientsite: http://www.telerik.com/help/aspnet-ajax/upload_howtoclientfilesize.html
Now I customized this code for my project:
| <script type="text/javascript"> |
| function checkUploadedFilesSize(progressArea, args) |
| { |
| if (!progressArea.confirmed && |
| args.get_progressData().RadUpload.RequestSize > 10485760) |
| { |
| progressArea.cancelRequest(); |
| } |
| } |
| </script> |
It work's, but how can I set a custom validator to "false" after I canceld the request to show the user an error message??
My cumstom validator looks like this:
| <asp:CustomValidator |
| ID="checksizevalidator" runat="server" |
| Display="Dynamic"> |
| The total size of the selected files is more than the limit. |
| </asp:CustomValidator> |
Thanks in advance for your help.
Regards
Dirk