This is a migrated thread and some comments may be shown as answers.

StaticResources

1 Answer 62 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Matthew Kwan
Top achievements
Rank 1
Matthew Kwan asked on 05 Oct 2009, 07:42 AM

Hi,

I am trying to use the upload control which I copied the codes from the sample. 

My problem is not sure how to see the StaticResources for the UploadServiceUrl and TargetFolder properties.

In my App.xaml, I have:

 

 

 

<Application.Resources>

 

 

 

 

<Style x:Name="UploadServiceUrl" TargetType="RadUpload">

 

 

 

 

<Setter Property="Content" Value="../RadUploadHandler.ashx"></Setter>

 

 

 

 

</Style>

 

 

 

 

<Style x:Name="TargetFolder" TargetType="RadUpload">

 

 

 

 

<Setter Property="Content" Value="UserUploads"></Setter>

 

 

 

 

</Style>
 </Application.Resources>

Is this correct?

Also where do I install the RadUploadHandler.ashx?

Matt

 

 

 

1 Answer, 1 is accepted

Sort by
0
Ivan
Telerik team
answered on 05 Oct 2009, 05:29 PM
Hi Matthew Kwan,

Thank you for your interest in the RadUplaod for Silverlight.

In our online example we have done some optimizations. For example in order to minimize the code maintenance we move some data in the starting/main application binary (this is the Examples_SL.CS project). In your case both values for the UploadServiceUrl and the TargetFolder properties are located in the App.xaml file. Below you can find their definitions:

<Application.Resources> 
    <system:String x:Key="UploadServiceUrl">../RadUploadHandler.ashx</system:String> 
    <system:String x:Key="TargetFolder">UserUploads</system:String> 

The upload handler is a standard Asp.Net generic handler and it should be a part of the Web-application starting your Silverlight application.

More about RadUpload for Silverlight you can find in the links below:

We hope this information will help you.

Sincerely yours,
Ivan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Upload
Asked by
Matthew Kwan
Top achievements
Rank 1
Answers by
Ivan
Telerik team
Share this question
or