예제 #1
0
        /// -----------------------------------------------------------------------------
        /// <summary>
        ///   Creates the control contained within this control
        /// </summary>
        /// <history>
        ///   [cnurse]	07/31/2006 created
        /// </history>
        /// -----------------------------------------------------------------------------
        protected override void CreateChildControls()
        {
            //First clear the controls collection
            Controls.Clear();

            //Create Table
            _fileControl = new DnnFilePicker
            {
                ID                = string.Format("{0}FileControl", ID),
                FileFilter        = FileFilter,
                FilePath          = FilePath,
                Permissions       = "ADD",
                UsePersonalFolder = true,
                ShowFolders       = false,
                User              = User
            };

            //Add table to Control
            Controls.Add(_fileControl);

            base.CreateChildControls();
        }
예제 #2
0
        /// -----------------------------------------------------------------------------
        /// <summary>
        ///   Creates the control contained within this control
        /// </summary>
        /// <history>
        ///   [cnurse]	07/31/2006 created
        /// </history>
        /// -----------------------------------------------------------------------------
        protected override void CreateChildControls()
        {
            //First clear the controls collection
            Controls.Clear();

            //Create Table
            _fileControl = new DnnFilePicker
                               {
                                   ID = string.Format("{0}FileControl", ID),
                                   FileFilter = FileFilter,
                                   FilePath = FilePath,
                                   Permissions = "ADD",
                                   UsePersonalFolder = true,
                                   ShowFolders = false,
                                   User = User
                               };

            //Add table to Control
            Controls.Add(_fileControl);

            base.CreateChildControls();
        }