Beispiel #1
0
        public override string GetStringAttributes()
        {
            if (string.IsNullOrWhiteSpace(CacheAttributes))
            {
                if (SizeArea > 0)
                {
                    SetAttribute("size", SizeArea.ToString());
                }
                else
                {
                    RemoveAttribute("size");
                }

                if (Autocomplete != null)
                {
                    SetAttribute("autocomplete", Autocomplete == true ? "on" : "off");
                }
                else
                {
                    RemoveAttribute("autocomplete");
                }
            }

            return(base.GetStringAttributes());
        }
Beispiel #2
0
        public override string GetStringAttributes()
        {
            if (SizeArea > 0)
            {
                SetAttribute("rows", SizeArea.ToString());
            }
            else
            {
                RemoveAttribute("rows");
            }

            return(base.GetStringAttributes());
        }