Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6648005
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T00:36:17+00:00 2026-05-26T00:36:17+00:00

i have a file explorer like below : <%@ Page Language=C# AutoEventWireup=true CodeBehind=SearchBar.aspx.cs Inherits=FileExplorer.SearchBar

  • 0

i have a file explorer like below :

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SearchBar.aspx.cs" Inherits="FileExplorer.SearchBar" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <script type="text/javascript">
//        function OnClientFileOpen(oExplorer, args) {
//            args.set_cancel(true);
//            radopen(args.get_item().get_url());
//        }

        function OnClientFileOpen(oExplorer, args) {
            var item = args.get_item();
            var fileExtension = item.get_extension();

            var fileDownloadMode = document.getElementById("chkbxDownoaldFile").checked;
            if ((fileDownloadMode == true) && (fileExtension == "jpg" || fileExtension == "gif")) {// Download the file
                // File is a image document, do not open a new window
                args.set_cancel(true);

                // Tell browser to open file directly
                var requestImage = "Handler.ashx?path=" + item.get_url();
                document.location = requestImage;
            }
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <telerik:RadWindowManager ID="RadWindowManager1" runat="server">
        </telerik:RadWindowManager>
        <telerik:RadFileExplorer runat="server" ID="RadFileExplorer1" Height="400px" Hidth="600px"
            EnableCreateNewFolder="false" EnableCopy="true" OnClientFileOpen="OnClientFileOpen" enableopenfile="true">
            <Configuration ViewPaths="~/Files" UploadPaths="~/Files" DeletePaths="~/Files" />
        </telerik:RadFileExplorer>
        <br />
        <asp:CheckBox ID="chkbxDownoaldFile" runat="server" Text="Open images for direct download " />
    </div>
    </form>
</body>
</html>

the upper codes are just an example and you can see their demo in the below link …
FileExplorer / Filter files and download

i want to allow my users to download any file from my server without any preview (just save as window)…
so for this purpose i can change the upper codes easily.

but there is a situation here -> i want to capture and filter downloads (file size limit) (sql server 2008 database).
it seems RadFileExplorer only has client side events for my purpose!
when my page loads , i want to show RadFileExplorer to my user for just seeing it’s files without any permission for download.
when he/she double clicks on a file i tell that user plz login first!
after his/her logined , he/she can download files but only 1 GB per day.
how can i do this stuff for my RadFileExplorer ?
is web service and web methodes a good idea for this situation?

thanks in advance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T00:36:18+00:00Added an answer on May 26, 2026 at 12:36 am

    The code you are using relies on a handler – “Handler.ashx”. All files are streamed using this handler so you can implement your server side restrictions in its code. I think you can also use the handler to redirect the browser to a different page if the user is not logged in.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a file format I need to be able to show in explorer
In the filesystem I have /file.aspx /directory/default.aspx I want to configure IIS so that
I have a file listing in my application and I would like to allow
I have downloaded and added this very simple, one file, php web file explorer
I'd like to open a new tab with the file explorer set to the
We have an ancient application that basically duplicates a file explorer, outlook style application
I noticed that if I have a .js file in windows explorer (not Internet
I have a list collection like below : using System; using System.Collections.Generic; using System.Linq;
i have a list collection like below : using System; using System.Collections.Generic; using System.Linq;
When I was learning Portable Executable (PE) file format for windows, tools like PE-Explorer

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.