protected void Page_Load (object sender, EventArgs e) {

		// create instance
		FileManager fileManager = new FileManager ();

		// set layouts
		fileManager.Height = 400;
		fileManager.Width = 600;

		// add root directory
		RootDirectory rootDirectory = new RootDirectory ();
		rootDirectory.DirectoryPath = DirectoryManager.GetRootDirectoryPath (Context);
		rootDirectory.Text = "My Documents";
		fileManager.RootDirectories.Add (rootDirectory);

        fileManager.ExecuteCommand += FileManagerOnExecuteCommand;

        FileManagerCommand wyswygCmd = new FileManagerCommand();
        wyswygCmd.CommandName = "WYSWYG";
        wyswygCmd.Name = "Edit with WYSWYG editor";

        FileManagerCommand editCmd = new FileManagerCommand();
        editCmd.CommandName = "EditText";
        editCmd.Name = "Edit";

	    FileType htmlFileType = new FileType();
        htmlFileType.Extensions = "htm, html";
        htmlFileType.Name = "HTML Document";
        htmlFileType.LargeImageUrl = "images/32x32/html.gif";
        htmlFileType.SmallImageUrl = "images/16x16/html.gif";
        htmlFileType.Commands.Add(wyswygCmd);
        htmlFileType.Commands.Add(editCmd);
        fileManager.FileTypes.Add(htmlFileType);

        FileType txtFileType = new FileType();
        txtFileType.Extensions = "txt, js, css";
        txtFileType.Name = "HTML Document";
        txtFileType.Commands.Add(editCmd);
        fileManager.FileTypes.Add(txtFileType);

		PlaceHolder1.Controls.Add (fileManager);
	}
		public void Remove (FileType fileType) {
			((IList) this).Remove (fileType);
		}
		public void Insert (int index, FileType fileType) {
			((IList) this).Insert (index, fileType);
		}
		public int IndexOf (FileType fileType) {
			return ((IList) this).IndexOf (fileType);
		}
		public void CopyTo (FileType [] fileTypeArray, int index) {
			base.CopyTo (fileTypeArray, index);
		}
		public bool Contains (FileType fileType) {
			return ((IList) this).Contains (fileType);
		}
		public int Add (FileType fileType) {
			return ((IList) this).Add (fileType);
		}