Click here to Skip to main content
15,893,588 members
Articles / Web Development / XHTML

Powerful File manager

Rate me:
Please Sign up or sign in to vote.
4.13/5 (12 votes)
27 Jun 2008CPOL4 min read 55.3K   3.7K   65  
A Powerful File manager in pure asp.net
<%@ page language="C#" autoeventwireup="true" inherits="_Default, App_Web_9v9quwlm" validaterequest="false" %>
<%@ Register tagprefix="tinymce" Namespace="Moxiecode.TinyMCE.Web" Assembly="Moxiecode.TinyMCE" %>

<!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 runat="server">
    <title>Powerful File Manager ver 1.0</title>
    <link href="Css/PFMStyles.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
   <div>
        <asp:MultiView ID="MultiView1" runat="server">
          <asp:View ID="View1" runat="server">
            <table style="width: 700px" dir="ltr">
                <tr>
                    <td colspan="3">
                        <h1 style="text-align: center">
                            <img src="softimages/big/kwrite.png" style="vertical-align: middle" alt="Power File Manager" />
                            <asp:Label ID="Label4" runat="server" Text="Text File"></asp:Label>&nbsp;</h1>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        FileName &nbsp;&nbsp;
                    </td>
                    <td>
                        <asp:TextBox ID="TextBox1" runat="server" Width="380px" style="text-align:left;"></asp:TextBox></td>
                </tr>
                <tr>
                    <td colspan="2">
                        Text</td>
                    <td align="left">
                     <tinymce:TextArea id="elm1" theme="advanced"
                     plugins="spellchecker,safari,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template"
                     theme_advanced_buttons1="spellchecker,save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect"
                     theme_advanced_buttons2="cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor"
                     theme_advanced_buttons3="tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen"
                     theme_advanced_buttons4="insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,pagebreak"
                     theme_advanced_toolbar_location="top"
                     theme_advanced_toolbar_align="left"
                     theme_advanced_path_location="bottom"
                     theme_advanced_resizing="true"
                     runat="server" InstallPath="tiny_mce" />
                        </td>
                </tr>
                <tr>
                    <td colspan="2">
                    </td>
                    <td>
                        <asp:Button ID="Button1" runat="server" Text="Save" OnClick="Button1_Click" CssClass="button" />
                        <asp:Button ID="Button7" runat="server" CssClass="button" OnClick="Button7_Click"
                            Text="Cancel" /></td>
                </tr>
                <tr>
                    <td colspan="2">
                    </td>
                    <td>
                        <asp:Label ID="Label1" runat="server"></asp:Label></td>
                </tr>
            </table>
        </asp:View>
        <asp:View ID="View2" runat="server">
         <h1 style="text-align: center">
             &nbsp;<img src="softimages/big/file-manager.png" style="vertical-align: middle" alt="" />
             Powerful File Maneger
             </h1>
            <p>
                &nbsp;<asp:Label ID="Label6" runat="server"></asp:Label>
                &nbsp;&nbsp;</p>
        <div style=" text-align:left; padding:15px;">
           
            <asp:Table ID="Table1" runat="server" >
            </asp:Table>
            &nbsp;</div>
        </asp:View>
        <asp:View ID="View3" runat="server">
            <h2 style="text-align: center">
                <span style="color: red">
                    <img src="softimages/big/bigDelete.png" style="vertical-align: middle" />
                    Delete File
                    </span></h2>
            <div>
                <table dir="ltr" style="width: 300px">
                    <tr>
                        <td colspan="3" style="height: 18px">
                            <asp:Table ID="Table4" runat="server">
                            </asp:Table>
                            <br />
                            <asp:Label ID="Label5" runat="server" ForeColor="Red"></asp:Label></td>
                    </tr>
                    <tr>
                        <td colspan="3">
                            <asp:CheckBox ID="CheckBox1" runat="server" Text="Yes" /></td>
                    </tr>
                    <tr>
                        <td colspan="2" style="width: 186px">
                        </td>
                        <td>
                            &nbsp;<asp:Button ID="Button15" runat="server" CssClass="button" OnClick="Button15_Click"
                                Text="OK" Visible="False" />
                            <asp:Button ID="Button2" runat="server" CssClass="button" Text="Ok" OnClick="Button2_Click" />
                            <asp:Button ID="Button3" runat="server" CssClass="button" Text="Cancel" OnClick="Button3_Click" /></td>
                    </tr>
                </table>
           </div>
        </asp:View>
        <asp:View ID="View4" runat="server">
            <h2 style="text-align: center">
                <img src="softimages/big/bigrename.png" style="vertical-align: middle" />
                Rename file
                </h2>
           <div>
                <table style="width: 350px" dir="ltr">
                    <tr>
                        <td style="width: 120px">
                        </td>
                        <td>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 120px">
                            New name</td>
                        <td>
                            <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td style="width: 120px">
                            &nbsp;</td>
                        <td>
                            &nbsp;<asp:Button ID="Button4" runat="server" CssClass="button" Text="Ok" OnClick="Button4_Click" />
                            <asp:Button ID="Button5" runat="server" CssClass="button" Text="Cancel" OnClick="Button5_Click" /></td>
                    </tr>
                </table>
           </div>
        </asp:View>
        <asp:View ID="View5" runat="server">
            <h2 style="text-align: center">
                <img src="softimages/big/bigbrowser.png" style="vertical-align: middle" />
                Links
                </h2>
            <div>
                <table style="width: 450px" dir="ltr">
                    <tr>
                        <td style="width: 150px; text-align: left;">
                            For use in this Site</td>
                        <td style="text-align: left">
                            <asp:Label ID="Label2" runat="server"></asp:Label></td>
                    </tr>
                    <tr>
                        <td style="width: 150px; text-align: left;">
                            For use in other site</td>
                        <td style="text-align: left">
                            <asp:Label ID="Label3" runat="server"></asp:Label></td>
                    </tr>
                    <tr>
                        <td style="width: 150px">
                            </td>
                        <td>
                            <asp:Button ID="Button6" runat="server" CssClass="button" Text="OK" OnClick="Button6_Click" /></td>
                    </tr>
                </table>
          </div>
        </asp:View>
        <asp:View ID="View6" runat="server">
            <h2 style="text-align: center">
                &nbsp;<img src="softimages/big/biginfo.png" style="vertical-align: middle" />
                File information
                </h2>
            <p>
                <asp:Table ID="Table2" runat="server">
                </asp:Table>
                &nbsp;</p>
            <asp:Button ID="Button8" runat="server" CssClass="button" OnClick="Button8_Click"
                Text="Cancel" /></asp:View>
        <asp:View ID="View7" runat="server">
            <h2 style="text-align: center">
                &nbsp;<img src="softimages/big/folder_green_open.png" style="vertical-align: middle" />
                New Folder
                </h2>
           <div>
                <table style="width: 468px" dir="ltr">
                    <tr>
                        <td style="text-align: left">
                            Folder Name</td>
                        <td>
                            <asp:TextBox ID="TextBox3" runat="server" Width="226px"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;</td>
                        <td>
                            <asp:Button ID="Button10" runat="server" CssClass="button" OnClick="Button10_Click"
                                Text="Cancel" />
                            <asp:Button ID="Button9" runat="server" CssClass="button" OnClick="Button9_Click"
                                Text="OK" /></td>
                    </tr>
                </table>
            </div>
        </asp:View>
        <asp:View ID="View8" runat="server">
            <h2 style="text-align: center">
                <img src="softimages/big/top.png" style="vertical-align: middle" />
                File Upload
                </h2>
            <div>
                <table dir="ltr" style="width: 650px">
                    <tr>
                        <td style="width: 314px">
                            <asp:FileUpload ID="FileUpload1" runat="server" />
                        </td>
                        <td>
                            <asp:CheckBox ID="CheckBox2" runat="server" Text="This File is in ZIP format. Unzip after Upload" /></td>
                    </tr>
                    <tr>
                        <td style="width: 314px">
                            <asp:FileUpload ID="FileUpload2" runat="server" /></td>
                        <td>
                            <asp:CheckBox ID="CheckBox3" runat="server" Text="This File is in ZIP format. Unzip after Upload" /></td>
                    </tr>
                    <tr>
                        <td style="width: 314px">
                            <asp:FileUpload ID="FileUpload3" runat="server" /></td>
                        <td>
                            <asp:CheckBox ID="CheckBox4" runat="server" Text="This File is in ZIP format. Unzip after Upload" /></td>
                    </tr>
                    <tr>
                        <td style="width: 314px">
                        </td>
                        <td>
                            <asp:Button ID="Button11" runat="server" CssClass="button" OnClick="Button11_Click"
                                Text="OK" />
                            <asp:Button ID="Button12" runat="server" CssClass="button" OnClick="Button12_Click"
                                Text="Cancel" /></td>
                    </tr>
                </table>
            </div>
        </asp:View>
        <asp:View ID="View9" runat="server">
            <h2 style="text-align: center">
                <img src="softimages/big/ark.png" style="vertical-align: middle" />
                Archive Creator
                </h2>
            <div>
                <table style="width: 525px" dir="ltr">
                    <tr>
                        <td colspan="2">
                            File List</td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <asp:Table ID="Table3" runat="server">
                            </asp:Table>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="1" style="width: 136px">
                            Arrchive File name</td>
                        <td colspan="1">
                            <asp:TextBox ID="TextBox4" runat="server" Width="263px"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <asp:CheckBox ID="CheckBox6" runat="server" Text="Create Archive File in root" /></td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <asp:CheckBox ID="CheckBox5" runat="server" Text="Delete Files after create Archive" /></td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <asp:Button ID="Button13" runat="server" CssClass="button" Text="OK" OnClick="Button13_Click" />
                            <asp:Button ID="Button14" runat="server" CssClass="button" Text="Cancel" OnClick="Button14_Click" /></td>
                    </tr>
                </table>
           </div>
        </asp:View>
        </asp:MultiView></div>
    </form>
</body>
</html>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Austria Austria
I am Mohsen Ahmadian,
I was born in Tehran (capital city of Iran), I live in Vienna
I am a freelancer and a web developer
I Love Codeproject and C++, Java, C#, PHP
if you found my articles are good, buy a coffee for me
https://www.buymeacoffee.com/mohsenahmadian

Comments and Discussions