I am working on RadUpload SilverLight Control , I want to set the TragetFolder programmatically because my application requirement is like that the Folders are created at the Runtime and giving a number.
Thank you for your interest in the RadUpload control.
You can initialize the RadUpload's TargetFolder property in your code behind too. For example this.uploadControl.TargetFolder = "MyStorageFolder";
is a legal expression.
Please try the attached application and let us know if you have other questions.
Thanks for the reply , Actually I am creating the Folder at runtime and I want to assigned that Folder as the TragetFolder.
I have used the Class files are provided by Telerik Demo RadUploadProperties.cs and UploadedFileInfo.cs .
Kindly help me to correct this error and Assign the a TragetFolder .
I am to create the Directory at the In "MyStorageFolder"
But I am unable to Upload the Files.
I am using this function to Create the Directory .
string TempStorePath = "~/MyStorageFolder"
public void CreateDir()
{
try
{
UploadHolder = TempStorePath + "NewFolder" + DateTime.Now.ToString("ddMMyyhhmmss");
// NewFolder-20090801000000 Folder will be same thing like this
Directory.CreateDirectory(Server.MapPath(UploadHolder));
}
catch (Exception ex)
{
}
}
Thanks
Regards
Vinodh
0
Ivan
Telerik team
answered on 22 Oct 2009, 11:04 AM
Hello Vino,
Please preview the Personalize the Upload Storage article. There is a working example how to create a personalized target folder depending on user authorization information. Please give it a try and let me know if we can assist you further.