When using an HTML Helper, what is the best method to set an attribute based on a condition. For example
<%if (Page.User.IsInRole(\"administrator\")) {%&g
You may also define this param that way:
Page.User.IsInRole("administrator") ? (object)new { @class='contactDetails'} : (object)new { @class='contactDetails', disabled = true}