HtmlAttributes Attribute

Use this attribute to customize the attributes that get rendered on your property.

usage
[HtmlAttributes( new[] { "id", "class"}, new[] { "myTextBoxId", "random_class"} )]   
public string TextBox { get; set; }

Other attributes that render their own tags will typically inherit from this attribute as well.

Last edited Feb 21, 2011 at 3:49 AM by brk6004, version 3

Comments

No comments yet.