Ejemplo n.º 1
0
 protected override void AddAttributes(Element el)
 {
     el.AddAttribute("type", "hidden");
     el.AddAttribute("name", ClientID);
     el.AddAttribute("value", Value);
     base.AddAttributes(el);
 }
Ejemplo n.º 2
0
 public Element CreateElement(string elementName)
 {
     if (_lastElement != null)
         _lastElement.CloseOpeningElement();
     _lastElement = new Element(this, elementName);
     return _lastElement;
 }
Ejemplo n.º 3
0
 protected override void AddAttributes(Element el)
 {
     el.AddAttribute("name", ClientID);
     if (Size != -1 && Size != 1)
         el.AddAttribute("size", Size.ToString());
     base.AddAttributes(el);
 }
Ejemplo n.º 4
0
 protected override void AddAttributes(Element el)
 {
     el.AddAttribute("href", Href);
     if (!string.IsNullOrEmpty(Target))
         el.AddAttribute("target", Target);
     base.AddAttributes(el);
 }
Ejemplo n.º 5
0
 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);
 }
Ejemplo n.º 6
0
        protected override void AddAttributes(Element el)
        {
            base.AddAttributes(el);
			foreach (Attribute idx in Attributes)
			{
				el.AddAttribute(idx.Name, idx.Value);
			}
        }
Ejemplo n.º 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);
 }
Ejemplo n.º 8
0
 protected override void AddAttributes(Element el)
 {
     el.AddAttribute("type", "button");
     el.AddAttribute("value", Value);
     base.AddAttributes(el);
 }
Ejemplo n.º 9
0
 protected override void AddAttributes(Element el)
 {
     el.AddAttribute("src", Src);
     el.AddAttribute("alt", Alt);
     base.AddAttributes(el);
 }
Ejemplo n.º 10
0
 protected override void AddAttributes(Element el)
 {
     el.AddAttribute("href", "javascript:MUX.emp();");
     base.AddAttributes(el);
 }
Ejemplo n.º 11
0
 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);
 }
Ejemplo n.º 13
0
		protected override void AddAttributes(Element el)
		{
			base.AddAttributes(el);
		}
Ejemplo n.º 14
0
 protected override void AddAttributes(Element el)
 {
     if (!string.IsNullOrEmpty(For))
         el.AddAttribute("for", For);
     base.AddAttributes(el);
 }
Ejemplo n.º 15
0
 protected override void AddAttributes(Element el)
 {
     el.AddAttribute("style", "display:none;");
     base.AddAttributes(el);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 17
0
 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);
 }
Ejemplo n.º 20
0
 protected virtual void AddAttributes(Element el)
 {
     el.AddAttribute("id", ClientID);
 }