Hi,
I have Radupload control in .ascx file some thing like this.
On Submit button's Click event on code behind
i have written liek this:
but i always ruConsent.UploadedFiles.Count remains 0. If i put it out side of RadAjaxPanel then it is working fine. But when kept inside it is not working. Any idea why ?
I have Radupload control in .ascx file some thing like this.
<
tel:RadUpload
ID
=
"ruConsent"
runat
=
"server"
AllowedFileExtensions
=
"jpg,jpeg,png,gif,pdf,doc,docx,xls,xlsx"
ControlObjectsVisibility
=
"None"
Height
=
"24px"
MaxFileSize
=
"10485760"
>
</
tel:RadUpload
>
On Submit button's Click event on code behind
i have written liek this:
if
(ruConsent.UploadedFiles.Count > 0 && ruConsent.InvalidFiles.Count == 0)
{
// upload file
}
else
{
//Show error message that files are not valid
}
but i always ruConsent.UploadedFiles.Count remains 0. If i put it out side of RadAjaxPanel then it is working fine. But when kept inside it is not working. Any idea why ?