
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
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.

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
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