示例#1
0
 protected void ApplyAttributes(ITagBuilder tag)
 {
     if (additionalAttributes == null)
     {
         return;
     }
     foreach (var attr in additionalAttributes)
     {
         if (!string.IsNullOrWhiteSpace(attr.Value))
         {
             tag.MergeAttribute(attr.Key, attr.Value);
         }
     }
 }
 protected void ApplyAttributes(ITagBuilder tag)
 {
     if (additionalAttributes == null)
     {
         return;
     }
     foreach (var attr in additionalAttributes)
     {
         if (!string.IsNullOrWhiteSpace(attr.Value))
         {
             tag.MergeAttribute(attr.Key, attr.Value, true);
         }
     }
 }