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

Download/Manage site files

3 Answers 71 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
sitefinitysteve asked on 26 Dec 2009, 08:10 PM
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

3 Answers, 1 is accepted

Sort by
0
Fiko
Telerik team
answered on 28 Dec 2009, 04:24 PM
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.
0
Technology
Top achievements
Rank 1
answered on 19 Aug 2010, 09:10 AM

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

0
Fiko
Telerik team
answered on 24 Aug 2010, 11:52 AM
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
Tags
FileExplorer
Asked by
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
Answers by
Fiko
Telerik team
Technology
Top achievements
Rank 1
Share this question
or