I have a telerik rad uploader and a button to upload the file. I want to validate with some client side validation on the OnClientClick. Appears that when the page loads I suppose it's hitting my validate function and not making the uploader control. What
could be the issue. Below is how I'm trying to obtain the data in the uploader:
var myfile = document.getElementById('<%=fileuploader.ClientID%').value;
tvb2727
Participant
925 Points
1275 Posts
Validate function in java script and upload box
Nov 09, 2012 07:14 PM|LINK
I have a telerik rad uploader and a button to upload the file. I want to validate with some client side validation on the OnClientClick. Appears that when the page loads I suppose it's hitting my validate function and not making the uploader control. What could be the issue. Below is how I'm trying to obtain the data in the uploader:
var myfile = document.getElementById('<%=fileuploader.ClientID%').value;
jprochazka
Contributor
4896 Points
740 Posts
Re: Validate function in java script and upload box
Nov 09, 2012 07:22 PM|LINK
You could try using an ASP.NET CustomValidator instead as recommended by Telerik:
http://www.telerik.com/help/aspnet-ajax/upload-client-side-validation.html