StaticResources

2 posts, 0 answers
  1. Matthew Kwan
    Matthew Kwan avatar
    3 posts
    Member since:
    Oct 2009

    Posted 05 Oct 2009 Link to this post

    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

     

     

     

  2. Ivan
    Admin
    Ivan avatar
    519 posts

    Posted 05 Oct 2009 Link to this post

    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.
  3. DevCraft banner
Back to Top