Essential Studio for Asp.Net | Demos

Showcase samples
    File/Image Browser
    <%@ Page Title="RichTextEditor-File & Image Browser-ASP.NET-SYNCFUSION" Language="C#" MasterPageFile="~/Samplebrowser.Master" AutoEventWireup="true" CodeBehind="FileAndImageBrowser.aspx.cs" Inherits="WebSampleBrowser.RichTextEditor.FileAndImageBrowser" %>
    <asp:Content ID="Content4" ContentPlaceHolderID="SampleHeading" runat="server">
        File/Image Browser
    <asp:Content ID="Content5" ContentPlaceHolderID="ControlsSection" runat="server">
            <ej:RTE ID="browser" Width="100%" Height="440" runat="server" MinWidth="200px">
            <p>The Rich Text Editor (RTE) control is an easy to render in
            client side. Customer easy to edit the contents and get the HTML content for
            the displayed content. A rich text editor control provides users with a toolbar
            that helps them to apply rich text formats to the text entered in the text
            area. </p>
            the tool bar support, it’s also customizable.</p></li><li><p>Options
            to get the HTML elements with styles.</p></li><li><p>Support
            to insert image from a defined path.</p></li><li><p>Footer
            elements and styles(tag / Element information , Action button (Upload, Cancel))</p></li><li><p>Re-size
            the editor support.</p></li><li><p>Provide
            efficient public methods and client side events.</p></li><li><p>Keyboard
            navigation support.</p></li></ol>
                <ImageBrowser ExtensionAllow="*.png,*.gif,*.jpg,*.jpeg" FilePath="~/FileBrowser/" AjaxAction="FileAndImageBrowser.aspx/FileActionDefault" UploadAction="../FileExplorer/uploadFiles.ashx{0}"/>
                <FileBrowser ExtensionAllow="*.png,*.txt,*.jpg,*.docx" FilePath="~/FileBrowser/" AjaxAction="FileAndImageBrowser.aspx/FileActionDefault" UploadAction="../FileExplorer/uploadFiles.ashx{0}"/>
    using Syncfusion.JavaScript;
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    namespace WebSampleBrowser.RichTextEditor
        public partial class FileAndImageBrowser : System.Web.UI.Page
            protected void Page_Load(object sender, EventArgs e)
                this.browser.ToolsList = new List<string>() { "images"};
                this.browser.Tools.Images = new List<string>() { "image" };            
            public static object FileActionDefault(string ActionType, string Path, string ExtensionsAllow, string LocationFrom, string LocationTo, string Name, string[] Names, string NewName, string Action, bool CaseSensitive, string SearchString, IEnumerable<CommonFileDetails> CommonFiles)
                    FileExplorerOperations opeartion = new FileExplorerOperations();
                    if (ActionType != "Paste" && ActionType != "GetDetails")
                        var FilePath = opeartion.GetPhysicalPath(opeartion.ToAbsolute(Path));
                        if (!FilePath.ToLower().Contains("filebrowser"))
                            throw new ArgumentException("'" + FilePath + "' is not accessible. Access is denied.");
                    switch (ActionType)
                        case "Read":
                            return (opeartion.Read(Path, ExtensionsAllow));
                        //case "CreateFolder":
                        //    return (opeartion.CreateFolder(Path, Name));
                        //case "Paste":
                        //    opeartion.Paste(LocationFrom, LocationTo, Names, Action, CommonFiles);
                        //    break;
                        //case "Remove":
                        //    opeartion.Remove(Names, Path);
                        //    break;
                        //case "Rename":
                        //    opeartion.Rename(Path, Name, NewName, CommonFiles);
                        //    break;
                        case "GetDetails":
                            return (opeartion.GetDetails(Path, Names));
                        case "Search":
                            return (opeartion.Search(Path, ExtensionsAllow, SearchString, CaseSensitive));
                        //provide restriction to modify data in our online samples
                            throw new Exception("Restricted to modify data in online demo.");
                    //return "";
                catch (Exception e)
                    FileExplorerResponse Response = new FileExplorerResponse();
                    Response.error = e.GetType().FullName + ", " + e.Message;
                    return Response;