I tried using this example here like this
<%: Html.TextBoxFor(model => model.MyList[0].FirstName, model.MyList[0].IsEnabled ? (object)new { disabled = "disabled" } : new { })%>
but that gave me an error
"The name model doesn't exist in the current context"
Is there a way to do this in vanilla asp.net MVC 3 without using an if else condition?
Thanks for your time...