I have been playing with the radUpload control, and I want to try to use it to allow users to upload a single file. The file will be large, so I want to show the progress of the upload as it goes. I thought this would be simple to do, but using the basic controls I can't seem to get it to work without throwing a java script error, and I never get the file.
Here is the code:
Do you see what is wrong?
Here is the code:
<
script
type
=
"text/javascript"
>
//
<![CDATA[
function onClientProgressBarUpdating(progressArea, args) {
progressArea.updateVerticalProgressBar(args.get_progressBarElement(), args.get_progressValue());
args.set_cancel(true);
}
//]]>
</
script
>
<
telerik:RadScriptManager
id
=
"ScriptManager1"
runat
=
"server"
/>
<
telerik:radupload
id
=
"Radupload1"
runat
=
"server"
initialfileinputscount
=
"1"
MaxFileInputsCount
=
"1"
ControlObjectsVisibility
=
"None"
TargetPhysicalFolder
=
"C:\Temp\UploadedFiles"
/>
<
asp:button
id
=
"buttonSubmit"
runat
=
"server"
text
=
"Submit"
onclick
=
"buttonSubmit_Click"
cssclass
=
"RadUploadSubmit"
/>
<
telerik:RadProgressManager
id
=
"Radprogressmanager1"
runat
=
"server"
/>
<
telerik:RadProgressArea
id
=
"RadProgressArea1"
runat
=
"server"
CssClass
=
"module"
onclientprogressbarupdating
=
"onClientProgressBarUpdating"
ProgressIndicators
=
"TotalProgressBar, TotalProgress, TotalProgressPercent, TimeEstimated, TransferSpeed"
/>
Do you see what is wrong?