コード例 #1
0
ファイル: IdentifierInputBox.cs プロジェクト: rbirkby/mscui
        /// <summary>
        /// Called by the ASP.NET page framework to notify server controls that use 
        /// composition-based implementation to create any child controls they contain 
        /// in preparation for posting back or rendering. 
        /// </summary>
        protected override void CreateChildControls()
        {
            base.CreateChildControls();

            this.textBox = new TextBox();
            this.textBox.ID = ID + "_TextBox";
            this.textBox.AutoCompleteType = AutoCompleteType.Disabled;
            this.textBox.TextChanged += new EventHandler(this.TextBoxTextChanged);
            Controls.Add(this.textBox);

            // Create the extender
            this.identifierInputBoxExtender = new IdentifierInputBoxExtender();
            this.identifierInputBoxExtender.ID = this.ID + "_IdentifierInputBoxExtender";
            this.identifierInputBoxExtender.TargetControlID = this.textBox.ID;
            this.Controls.Add(this.identifierInputBoxExtender);
        }
コード例 #2
0
ファイル: IdentifierInputBox.cs プロジェクト: odnodn/mscui
        /// <summary>
        /// Called by the ASP.NET page framework to notify server controls that use
        /// composition-based implementation to create any child controls they contain
        /// in preparation for posting back or rendering.
        /// </summary>
        protected override void CreateChildControls()
        {
            base.CreateChildControls();

            this.textBox    = new TextBox();
            this.textBox.ID = ID + "_TextBox";
            this.textBox.AutoCompleteType = AutoCompleteType.Disabled;
            this.textBox.TextChanged     += new EventHandler(this.TextBoxTextChanged);
            Controls.Add(this.textBox);

            // Create the extender
            this.identifierInputBoxExtender    = new IdentifierInputBoxExtender();
            this.identifierInputBoxExtender.ID = this.ID + "_IdentifierInputBoxExtender";
            this.identifierInputBoxExtender.TargetControlID = this.textBox.ID;
            this.Controls.Add(this.identifierInputBoxExtender);
        }