Download/Manage site files

4 posts, 0 answers
  1. Steve
    Steve avatar
    1851 posts
    Member since:
    Dec 2008

    Posted 26 Dec 2009 Link to this post

    I've got a site which exposes a folder with ascx controls, and I'd like the users to be able to download, modify, and reupload them

    How can this be done with the RadFileExplorer, an idea?  Dbl clicking the file gives a 404...I've got the mime type set as text/plain for .ascx

    Any ideas?

    Thanks,
    Steve
  2. Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 28 Dec 2009 Link to this post

    Hi Steve,

    In your case I recommend you to implement these steps in order to achieve the result:
    • Implement a generic Handler that will server the .ascx file.
    • Attach a JavaScript handler to the OnClientFileOpen event of the RadFileExplorer
    • Implement the handler as shown in this online demo in order to call the generic handler

    I hope this helps.

    Greetings,
    Fiko
    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. UI for ASP.NET Ajax is Ready for VS 2017
  4. Technology
    Technology avatar
    53 posts
    Member since:
    Jul 2010

    Posted 19 Aug 2010 Link to this post

    Dear Telerik team,

    Sorry but i am new in ASP.NET and i need your help.
    i have a trial version of RadControls and I want to do some tests before I buy them.

    Below you can see the code of my "Registered.aspx.vb" page. This page is after the Login page.
    The RadFileExplorer shows the files of a folder, according the user name from the Login page.
    I want the user to download the file with DoubleClick.

    --------------------------------
    Imports ASP.global_asax

    Partial Class Registered
        Inherits System.Web.UI.Page

        Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
            Dim surveyPath = "~/Files/" + Global.My.User.Name
            Dim paths As String() = {surveyPath}
            RadFileExplorer1.InitialPath = surveyPath
            RadFileExplorer1.Configuration.UploadPaths = paths
            RadFileExplorer1.Configuration.ViewPaths = paths
            RadFileExplorer1.DataBind()

            lblUserName.Text = "User: " + Global.My.User.Name

        End Sub

    End Class
    --------------------------------------


    I tried to insert the Example Source Code from the online demo above (DefaultVB.aspx.vb), but i get the error "RadFileExplorer1 is not declared" (attached picture). What am I doing wrong?
    Do I have to create and the “Handler.ashx” file in order enable the download??

    Can you please tell me how can i enable the download file?


    I use:
    -RadControls ASP.NET AJAX (Q2 2010)
    -ASP.NET (VB) 2008

    Thank you in advance for your help and your time.

    Best regards,
    Technology Department

  5. Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 24 Aug 2010 Link to this post

    Hello,

    The provided screenshot is not enough for me in order to determine the reason for the behavior that you experience. I suppose, however, that the configuration of the ASPX and Code-Behind file are incorrect. Please note that you need to synchronize the namespaces used in both files. More information about the subject can be found in this article.

    I hope this helps.

    Sincerely yours,
    Fiko
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top