i am trying to dynamically set the disabled attribute on the html textbox and having issues
i tried this in my view:
string disabledString = "";
if (SomeLogic)
{
disabledString = "disabled";
}
Html.Textbox()...new Dictionary<string, object> { { "maxlength", 50 }, { "disabled", readOnlyState } })%>
so as you can see i am setting the disabled attribute to "" or disabled but when i test, it seems to be disabled in either case. am i missing something?