/// -----------------------------------------------------------------------------
        /// <summary>
        ///   Creates the control contained within this control.
        /// </summary>
        /// -----------------------------------------------------------------------------
        protected override void CreateChildControls()
        {
            // First clear the controls collection
            this.Controls.Clear();

            var userControl = this.Page.LoadControl("~/controls/filepickeruploader.ascx");

            this._fileControl = userControl as DnnFilePickerUploader;

            if (this._fileControl != null)
            {
                this._fileControl.ID                = string.Format("{0}FileControl", this.ID);
                this._fileControl.FileFilter        = this.FileFilter;
                this._fileControl.FilePath          = this.FilePath;
                this._fileControl.FileID            = this.IntegerValue;
                this._fileControl.UsePersonalFolder = true;
                this._fileControl.User              = this.User;
                this._fileControl.Required          = true;

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

            base.CreateChildControls();
        }
Esempio n. 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();

            var userControl = Page.LoadControl("~/controls/filepickeruploader.ascx");

            _fileControl = userControl as DnnFilePickerUploader;

            if (_fileControl != null)
            {
                _fileControl.ID                = string.Format("{0}FileControl", ID);
                _fileControl.FileFilter        = FileFilter;
                _fileControl.FilePath          = FilePath;
                _fileControl.FileID            = IntegerValue;
                _fileControl.UsePersonalFolder = true;
                _fileControl.User              = User;
                _fileControl.Required          = true;

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

            ////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();
        }
Esempio n. 3
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();

            var userControl = Page.LoadControl("~/controls/filepickeruploader.ascx");
            _fileControl = userControl as DnnFilePickerUploader;

            if (_fileControl != null)
            {
                _fileControl.ID = string.Format("{0}FileControl", ID);
                _fileControl.FileFilter = FileFilter;
                _fileControl.FilePath = FilePath;
                _fileControl.FileID = IntegerValue;
                _fileControl.UsePersonalFolder = true;
                _fileControl.User = User;
	            _fileControl.Required = true;

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

            ////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();
        }
        /// -----------------------------------------------------------------------------
        /// <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();

            var userControl = Page.LoadControl("~/controls/filepickeruploader.ascx");
            _fileControl = userControl as DnnFilePickerUploader;

            if (_fileControl != null)
            {
                _fileControl.ID = string.Format("{0}FileControl", ID);
                _fileControl.FileFilter = FileFilter;
                _fileControl.FilePath = FilePath;
                _fileControl.FileID = IntegerValue;
                _fileControl.UsePersonalFolder = true;
                _fileControl.User = User;
	            _fileControl.Required = true;

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

            base.CreateChildControls();
        }