Hi All,
I've some more codes to share with u all.
My Rad Uploader implementation goes like the following :
====================================================
<
tel:radupload id="RadUpload1" CssClass="RadUpload_BrandShare" OnClientAdded="MakeRuInputFieldsNonEditable" OnClientFileSelected="SetPageIsSaved"
runat="server"
initialfileinputscount="5"
EnableEmbeddedSkins="false"
EnableFileInputSkinning="true"
overwriteexistingfiles="false"
Width="320"
InputSize="47"
ReadOnlyFileInputs="true"
AllowedFileExtensions=".jpg,.eps,.ai,.psd,.tiff,.tif,.jpeg,.pdf"
MaxFileSize="36700160"
/>
====================================================
My Rad Progress Area is like the following :
====================================================
<tel:RadProgressManager id="progressManager" runat="server" />
<tel:radprogressarea id="progressArea1" runat="server" EnableEmbeddedSkins="false" OnClientProgressUpdating="ProgressBarUpdate" DisplayCancelButton="true" CssClass="RadUpload_BrandShare" style="float:left; width:258px;margin-bottom:-15px;" >
<progresstemplate>
<b class="fontSize"><%=Lang("Upload in progress ") %></b><hr style="position:relative;margin-left:0px;margin-right:6px;margin-top:-5px;color:Black;height:1px;"/>
<b class="fontSize"><%=Lang("Uploaded images : ")%><span runat="server" id="SecondaryValue"></span><span class="fontSize"> / </span><span runat="server" id="SecondaryTotal"/><br /></b>
<span runat="server" id="CurrentOperation" style="word-wrap:break-word;"></span><br /><br />
<b class="fontSize"><%=Lang("Percent Ready ") %><br /></b><span runat="server" id="PrimaryPercent"></span><span class="fontSize"> % </span>
<input type="button" id="Cancel_Upload" value='<%= Lang("Cancel Upload") %>' onclick="cancelUpload()" style="position:relative;float:right;bottom:18px;margin-right:-30px;height:18px; z-index:20000;" class="fontSize"/>
</progresstemplate>
</tel:radprogressarea>
<
script type="text/javascript">
var
cancel=false;
function
ProgressBarUpdate(progressArea,args)
{
progressArea.updateVerticalProgressBar(args.ProgressBarElement, args.ProgressValue);
progressArea.cancelClicked=cancel;
if(cancel)
ProgressInvisible();
return false;
}
</script>
====================================================
UploadButtonClicked event handler is as follows:
====================================================
protected void UploadButtonClicked(object sender, EventArgs e)
{
RadProgressContext progress = RadProgressContext.Current;
progress[
"SecondaryValue"] = RadUpload1.UploadedFiles.Count.ToString();
Pictures =
new PictureCollection();
foreach (UploadedFile file in RadUpload1.UploadedFiles)
{
string fileNameWithGuid;
string filePath = _Presenter.GetFilePath(file.GetName(), out fileNameWithGuid);
Picture picture = new Picture();
picture.LocatedAt = filePath;
picture.Src=fileNameWithGuid;
Pictures.Add(picture);
file.SaveAs(filePath,
true);
}
_Presenter.CheckForInvalidFiles(RadUpload1.InvalidFiles.Count, RadUpload1.UploadedFiles.Count, Pictures);
if (_Presenter.TransitionToDescribePicturesAllowed())
LoadJsField.Value +=
"SetPageIsSaved(); GotoDescribePictures();";
}
====================================================
In my IIS , I have uncheked the checkboxes for *.ashx and *.aspx.
Can anyone pls look into this matter?
~ Regards,
Sadeka