When using the ASP.NET Ajax upload control, an alert box appears that reads "Stack Overflow: line 43". The message appears after a user clicks the submit button to upload the files to the server.
Do you have any idea why this may be occuring?
3 Answers, 1 is accepted
answered on 21 Oct 2008, 07:21 AM
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
I'm doing client side validation on a list box before I submit the page. It seems like the page is trying to upload the files as soon as the button is clicked rather than when the form is submitted. I run this script on the client side OnSubmit event of the form.
var products = document.getElementById("lbProducts");
var isSelected = false;
for (var i = 0; i < products.options.length; i++)
<%=Page.GetPostBackEventReference(btnNewAnalysis as Control)%>;
"You must select at least one comparison product");
Even I return false it seems as if the page is trying to upload the files. Is there a better way to do client side validation when using the upload control?