Just like operating a local computer, you need to provide each network user with a hard disk space. After logging on, you can manage your own space. Management is multidimensional. First, you should be able to see all the content in your folder. In addition, you need to provide support for multi-level folder directories.
The examples to be introduced below include many functions of "online hard disk", which will be introduced step by step. First, create a project instance, design the main interface, and finally introduce the implementation of each function.
Create a new project
To create a new project, follow these steps:
(1) Open the MicroSoft Visual Studio. NET application.
(2) Select "file" | "new" | "project" to open the "new project" dialog box, as shown in figure 1. Select and set: Select "Visual C # Project" in "project type", and then select "ASP.. NET Web application, and then change the position shown below the dialog box to http: // localhost/WebDisk. Click OK to create a new project.
Figure 1 New Project Settings
(3) After the project is created, a created Web page named WebForm1.aspx is opened. Select "View" | "solution Resource Manager" to open the "solution Resource Manager" dialog box. You can manage all the resources of the project in a unified manner, and you can see the WebForm1.aspx mentioned just now.
(4) Select "project"> "Add new project" to open the "Add new project" dialog box. Select "Web form" in "template" on the right, and rename the name NetWorkDisk. aspx in the lower left corner. Click the OPEN button to add a new item, as shown in Figure 16-2.
Figure 2 "Add new project" dialog box
Main Interface Design
After creating a project and a new item, you must design the main functional interface. Many server controls are required to make the user interface more user-friendly. 3 shows the designed functional interface, which is described in a series of steps below.
Figure 3 "Network hard drive" Main Interface Design
(1) Select "View"> "toolbox" to open the "toolbox" dialog box.
(2) double-click NetWorkDisk. aspx in "server resource manager" and select the "design" command in the lower left corner of the page. Then you can add the control.