コード例 #1
0
 protected override void AddAttributes(Element el)
 {
     el.AddAttribute("type", "hidden");
     el.AddAttribute("name", ClientID);
     el.AddAttribute("value", Value);
     base.AddAttributes(el);
 }
コード例 #2
0
ファイル: HyperLink.cs プロジェクト: polterguy/magix
 protected override void AddAttributes(Element el)
 {
     el.AddAttribute("href", Href);
     if (!string.IsNullOrEmpty(Target))
         el.AddAttribute("target", Target);
     base.AddAttributes(el);
 }
コード例 #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);
 }
コード例 #4
0
 protected override void AddAttributes(Element el)
 {
     el.AddAttribute("type", "checkbox");
     el.AddAttribute("name", ClientID);
     if (Checked)
         el.AddAttribute("checked", "checked");
     base.AddAttributes(el);
 }
コード例 #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);
 }
コード例 #6
0
ファイル: AttributeControl.cs プロジェクト: polterguy/magix
        protected override void AddAttributes(Element el)
        {
            base.AddAttributes(el);
			foreach (Attribute idx in Attributes)
			{
				el.AddAttribute(idx.Name, idx.Value);
			}
        }
コード例 #7
0
 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);
 }
コード例 #8
0
ファイル: Label.cs プロジェクト: polterguy/magix
 protected override void AddAttributes(Element el)
 {
     if (!string.IsNullOrEmpty(For))
         el.AddAttribute("for", For);
     base.AddAttributes(el);
 }
コード例 #9
0
ファイル: Button.cs プロジェクト: polterguy/magix
 protected override void AddAttributes(Element el)
 {
     el.AddAttribute("type", "button");
     el.AddAttribute("value", Value);
     base.AddAttributes(el);
 }
コード例 #10
0
ファイル: Img.cs プロジェクト: polterguy/magix
 protected override void AddAttributes(Element el)
 {
     el.AddAttribute("src", Src);
     el.AddAttribute("alt", Alt);
     base.AddAttributes(el);
 }
コード例 #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);
 }
コード例 #12
0
 protected virtual void AddAttributes(Element el)
 {
     el.AddAttribute("id", ClientID);
 }
コード例 #13
0
ファイル: TextBox.cs プロジェクト: polterguy/magix
 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);
 }
コード例 #14
0
 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);
 }
コード例 #15
0
 protected override void AddAttributes(Element el)
 {
     if (Rows != -1)
         el.AddAttribute("rows", Rows.ToString());
     base.AddAttributes(el);
 }
コード例 #16
0
 protected override void AddAttributes(Element el)
 {
     el.AddAttribute("style", "display:none;");
     base.AddAttributes(el);
 }
コード例 #17
0
 protected override void AddAttributes(Element el)
 {
     if (!string.IsNullOrEmpty(AccessKey))
         el.AddAttribute("accesskey", AccessKey);
     if (Disabled)
         el.AddAttribute("disabled", "disabled");
     base.AddAttributes(el);
 }
コード例 #18
0
ファイル: LinkButton.cs プロジェクト: polterguy/magix
 protected override void AddAttributes(Element el)
 {
     el.AddAttribute("href", "javascript:MUX.emp();");
     base.AddAttributes(el);
 }