Hi All,
Rad upload is not working on my Rad window.. please have look below code and fix the error.
Aspx:
Script:
please clarify the error.
Regards,
Prassin
Rad upload is not working on my Rad window.. please have look below code and fix the error.
Aspx:
<
telerik:RadWindow
runat
=
"server"
ID
=
"RadWindow_ContentTemplate"
RestrictionZoneID
=
"ContentTemplateZone"
Modal
=
"true"
Skin
=
"Office2010Blue"
Height
=
"350px"
Width
=
"478px"
>
<
ContentTemplate
>
<
p
class
=
"contText"
>
Hi, Pleae upload photo here and click complete button..
</
p
>
<
div
class
=
"contButton"
>
Upload photo :
<
telerik:RadUpload
ID
=
"imgUpload"
runat
=
"server"
ToolTip
=
"File Size limit 500KB, (jpg, bmp, png, gif)"
ControlObjectsVisibility
=
"None"
Width
=
"178px"
TargetFolder
=
"~/Upload/"
OnClientFileSelected
=
"OnClientFileSelectedHandler"
>
</
telerik:RadUpload
>
</
div
>
<
div
class
=
"contButton"
>
<
asp:Image
ID
=
"imgLogo"
runat
=
"server"
Visible
=
"true"
AutoAdjustImageControlSize
=
"false"
Height
=
"123px"
Width
=
"130px"
></
asp:Image
></
div
>
<
div
class
=
"contButton"
>
<
telerik:RadButton
ID
=
"RadButtonUpload"
runat
=
"server"
Text
=
"Complete"
Width
=
"200px"
>
<
Icon
SecondaryIconCssClass
=
"rbOpen"
SecondaryIconRight
=
"4"
SecondaryIconTop
=
"4"
/>
</
telerik:RadButton
>
</
div
>
<
div
class
=
"contButton"
>
<
telerik:RadTextBox
ID
=
"RadButton1"
runat
=
"server"
Text
=
"Upload"
Width
=
"200px"
Visible
=
"False"
>
</
telerik:RadTextBox
>
</
div
>
</
ContentTemplate
>
</
telerik:RadWindow
>
Script:
<
script
type
=
"text/jscript"
>
function OnClientFileSelectedHandler(sender, eventArgs) {
var img = document.getElementById("<%= imgLogo.ClientID %>");
img.src = eventArgs.get_fileInputField().value;
}
</
script
>
please clarify the error.
Regards,
Prassin