This project is read-only.

HtmlAttributes Attribute

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

[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 4:49 AM by brk6004, version 3


No comments yet.