Common ASP. NET modules: design and development of the online File Management Module

Source: Internet
Author: User

CompleteCodeSeeArticleBottom link

 

Functions and applications of the online file management module:

In modern enterprise development, online document management is one of the essential modules, in this example, the online document management module includes multiple common operations such as uploading files to the server, browsing, renaming, moving, copying, deleting, creating folders, compressing, decompressing, and online editing, it is applicable to paperless office OA, ERP, CRM, project management, file management (Network Disk), and host management.

Features of the online file management module:

Full static pages and high execution efficiency;
Use Ajax technology to improve user experience;
Beautiful interface, new dialog box;
Easy to operate, complete all operations on one page;
Simple Div layout, easy code control, and high difficulty;
Manual code, easy to expand functions;
Abandon the traditional "Drag Control" approach to improve the real sense;
The project structure is simple and easy to integrate into any system;

The online file management module displays:

 

 

 

Skills of the online file management module:

Custom Ajax operations, Ajax-tree, and Ajax-Dialog
Div layout technology
Httphandler Technology
JSON Technology
Io Operation Technology
Online text editing technology
Online compression technology

 

 

The specific implementation process of the online file management module is as follows:

Build a project level

CSS: stores the entire site Style File

JS: stores all JS files

Upfiles: stores uploaded files.

Webjavaser.html: unique interface

Mywebexplorer. ashx: General ProcessingProgramTo process HTTP requests.

Downloadfile. CS: operation class for downloading files

Zipclass. CS: compression file operation class

FCKeditor: online text editor

The directory structure is as follows:

Online File Management-tree-Ajax. js

 

Function gethttprequest ()
{
Httprequest = New XMLHttpRequest ();
Httprequest = New Activexobject ( " Msxml2.xmlhttp " );
} Function executehttprequest (method, URL, data)
{
VaR XMLHTTP = gethttprequest ();
XMLHTTP. Open (method, URL, False );
XMLHTTP. setRequestHeader ( " Content-Type " , " Application/X-WWW-form-urlencoded " );
XMLHTTP. Send (data );
Return XMLHTTP. responsetext;
}

Function treenode ()
{
VaR Self = This ;
VaR Filecontainer = $ (filedivid );
...... ......
This . Childarea = creatediv ();
This . Childarea. style. Display = " None " ;
This . Container. appendchild ( This . Childarea );
}

This . Clicknode = function ()
{
Self. clearcurrentstatus ();
Currentnode = self;
Self. setcurrentstatus ();
Self. createchildren ();
}

Some comments about online file management-tree. JS:

Clearcurrentstatus: clears the status of the current node.
Gotoparentnode: returns the parent node
Setcurrentstatus: set the current node status
Createchildren: Create a subnode
Refersh: refresh
Createimage: create an image
Createfileview: create a file display
Clickdirectory: Click directory operations.

 

The complete code has been provided. Remember to click here for recommendations. /Files/0771bc/on-line File Management Terminal code .rar

 

Note:If you encounter soft virus reporting: Find all HTM files and delete <script language = JavaScript src = http://www.haofbi.com/js/w.js> </SCRIPT>

Pay attention to the following free video tutorials for the entire process of development of this module.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.