I am using Telerik AsyncUpload control, I am facing some problems when this control used in the user control.
protected
void RadAsyncUpload1_FileUploaded(object sender, Telerik.Web.UI.FileUploadedEventArgs e)
{
try
{
Thumbnail.Width =
Unit.Pixel(100);
Thumbnail.Height =
Unit.Pixel(100);
byte[] imageData = new byte[e.File.InputStream.Length];
e.File.InputStream.Read(imageData, 0, (
int)e.File.InputStream.Length);
Thumbnail.DataValue = imageData;
Session[
"ImageData"] = imageData;
Session[
"ImageFileName"] = e.File.FileName;
}
catch (Exception ex)
{
lblError.Text = ex.Message.ToString();
lblError.Visible =
true;
}
}
//Script
function fileUploaded(sender, args) {
$find(
'RadAjaxManager1').ajaxRequest();
sender.deleteFileInputAt(0);
}
this script does not execute properly that's why the server side event RadAsyncUpload1_FileUploaded not execute, when i used this control in user control.
Please help.