protected override void AddAttributes(Element el)
 {
     el.AddAttribute("type", "hidden");
     el.AddAttribute("name", ClientID);
     el.AddAttribute("value", Value);
     base.AddAttributes(el);
 }
Beispiel #2
0
 public Element CreateElement(string elementName)
 {
     if (_lastElement != null)
         _lastElement.CloseOpeningElement();
     _lastElement = new Element(this, elementName);
     return _lastElement;
 }
 protected override void AddAttributes(Element el)
 {
     el.AddAttribute("name", ClientID);
     if (Size != -1 && Size != 1)
         el.AddAttribute("size", Size.ToString());
     base.AddAttributes(el);
 }
 protected override void AddAttributes(Element el)
 {
     el.AddAttribute("href", Href);
     if (!string.IsNullOrEmpty(Target))
         el.AddAttribute("target", Target);
     base.AddAttributes(el);
 }
 protected override void AddAttributes(Element el)
 {
     el.AddAttribute("onclick", "return false;");
     el.AddAttribute("type", "image");
     el.AddAttribute("src", ImageUrl);
     el.AddAttribute("alt", AlternateText);
     base.AddAttributes(el);
 }
Beispiel #6
0
        protected override void AddAttributes(Element el)
        {
            base.AddAttributes(el);
			foreach (Attribute idx in Attributes)
			{
				el.AddAttribute(idx.Name, idx.Value);
			}
        }
Beispiel #7
0
 protected override void AddAttributes(Element el)
 {
     el.AddAttribute("type", "checkbox");
     el.AddAttribute("name", ClientID);
     if (Checked)
         el.AddAttribute("checked", "checked");
     base.AddAttributes(el);
 }
Beispiel #8
0
 protected override void AddAttributes(Element el)
 {
     el.AddAttribute("type", "button");
     el.AddAttribute("value", Value);
     base.AddAttributes(el);
 }
Beispiel #9
0
 protected override void AddAttributes(Element el)
 {
     el.AddAttribute("src", Src);
     el.AddAttribute("alt", Alt);
     base.AddAttributes(el);
 }
Beispiel #10
0
 protected override void AddAttributes(Element el)
 {
     el.AddAttribute("href", "javascript:MUX.emp();");
     base.AddAttributes(el);
 }
 protected override void AddAttributes(Element el)
 {
     el.AddAttribute("type", "radio");
     el.AddAttribute("value", ClientID);
     if (!string.IsNullOrEmpty(Name))
         el.AddAttribute("name", Name);
     else
         el.AddAttribute("name", ClientID);
     if (Checked)
         el.AddAttribute("checked", "checked");
     base.AddAttributes(el);
 }
 protected override void AddAttributes(Element el)
 {
     if (!string.IsNullOrEmpty(AccessKey))
         el.AddAttribute("accesskey", AccessKey);
     if (Disabled)
         el.AddAttribute("disabled", "disabled");
     base.AddAttributes(el);
 }
Beispiel #13
0
		protected override void AddAttributes(Element el)
		{
			base.AddAttributes(el);
		}
Beispiel #14
0
 protected override void AddAttributes(Element el)
 {
     if (!string.IsNullOrEmpty(For))
         el.AddAttribute("for", For);
     base.AddAttributes(el);
 }
 protected override void AddAttributes(Element el)
 {
     el.AddAttribute("style", "display:none;");
     base.AddAttributes(el);
 }
Beispiel #16
0
 protected override void AddAttributes(Element el)
 {
     el.AddAttribute("type", Type.ToString().ToLower());
     if (MaxLength > 0)
         el.AddAttribute("maxlength", MaxLength.ToString());
     if (AutoCapitalize)
         el.AddAttribute("autocapitalize", "on");
     if (AutoComplete)
         el.AddAttribute("autocomplete", "on");
     else
         el.AddAttribute("autocomplete", "off");
     if (AutoCorrect)
         el.AddAttribute("autocorrect", "on");
     if (!string.IsNullOrEmpty(PlaceHolder))
         el.AddAttribute("placeholder", PlaceHolder);
     base.AddAttributes(el);
 }
 protected override void AddAttributes(Element el)
 {
     if (Rows != -1)
         el.AddAttribute("rows", Rows.ToString());
     base.AddAttributes(el);
 }
 protected override void AddAttributes(Element el)
 {
     if (ShouldAddValue)
         el.AddAttribute("value", Value);
     if (!string.IsNullOrEmpty(PlaceHolder))
         el.AddAttribute("placeholder", PlaceHolder);
     el.AddAttribute("name", ClientID);
     base.AddAttributes(el);
 }
 protected override void AddAttributes(Element el)
 {
     if (!string.IsNullOrEmpty(Title))
         el.AddAttribute("title", Title);
     if (!string.IsNullOrEmpty(Class))
         el.AddAttribute("class", Class);
     if (!string.IsNullOrEmpty(Dir))
         el.AddAttribute("dir", Dir);
     string style = Style.GetStylesForResponse();
     if (!string.IsNullOrEmpty(style))
         el.AddAttribute("style", style);
     if (!string.IsNullOrEmpty(TabIndex))
         el.AddAttribute("tabindex", TabIndex);
     base.AddAttributes(el);
 }
 protected virtual void AddAttributes(Element el)
 {
     el.AddAttribute("id", ClientID);
 }