PageRenderTime 304ms CodeModel.GetById 80ms app.highlight 56ms RepoModel.GetById 79ms app.codeStats 47ms

/Demo/Programming.aspx.cs

http://izwebfilemanager.googlecode.com/
C# | 32 lines | 24 code | 5 blank | 3 comment | 0 complexity | 1fe26985ec84b6823e3169d95d4e8e2e MD5 | raw file
 1using System;
 2using System.Data;
 3using System.Configuration;
 4using System.Collections;
 5using System.Web;
 6using System.Web.Security;
 7using System.Web.UI;
 8using System.Web.UI.WebControls;
 9using System.Web.UI.WebControls.WebParts;
10using System.Web.UI.HtmlControls;
11using IZ.WebFileManager;
12
13public partial class Programming : System.Web.UI.Page
14{
15	protected void Page_Load (object sender, EventArgs e) {
16
17		// create instance
18		FileManager fileManager = new FileManager ();
19
20		// set layouts
21		fileManager.Height = 400;
22		fileManager.Width = 600;
23
24		// add root directory
25		RootDirectory rootDirectory = new RootDirectory ();
26		rootDirectory.DirectoryPath = DirectoryManager.GetRootDirectoryPath (Context);
27		rootDirectory.Text = "My Documents";
28		fileManager.RootDirectories.Add (rootDirectory);
29
30		PlaceHolder1.Controls.Add (fileManager);
31	}
32}