コード例 #1
0
ファイル: TextBoxComponent.cs プロジェクト: viciproject/mvc
        public string Run(string name, string value, string className, int maxLength)
        {
            TextBoxControl textBoxControl = new TextBoxControl(name);

            textBoxControl.Value     = value;
            textBoxControl.CssClass  = className;
            textBoxControl.MaxLength = maxLength;

            return(textBoxControl.Render(RootView));
        }
コード例 #2
0
ファイル: TextBoxComponent.cs プロジェクト: TheMouster/mvc
        public string Run(string name, string value, string className, int maxLength)
        {
            TextBoxControl textBoxControl = new TextBoxControl(name);

            textBoxControl.Value = value;
            textBoxControl.CssClass = className;
            textBoxControl.MaxLength = maxLength;

            return textBoxControl.Render(RootView);
        }
コード例 #3
0
	    protected internal override Control CreateControl(string name)
	    {
	        TextBoxControl control = new TextBoxControl(name);

            control.MaxLength = MaxLength;
            control.AutoComplete = AutoComplete;
            control.Size = Width;
            control.OnKeyDown = OnKeyDown;
            control.OnKeyUp = OnKeyUp;
            control.OnKeyPress = OnKeyPress;
	        control.ReadOnly = ReadOnly;

            return control;
	    }
コード例 #4
0
        protected internal override Control CreateControl(string name)
        {
            TextBoxControl control = new TextBoxControl(name);

            control.MaxLength    = MaxLength;
            control.AutoComplete = AutoComplete;
            control.Size         = Width;
            control.OnKeyDown    = OnKeyDown;
            control.OnKeyUp      = OnKeyUp;
            control.OnKeyPress   = OnKeyPress;
            control.ReadOnly     = ReadOnly;

            return(control);
        }