Pergunta

Eu tentei:

@Html.TextBoxFor(m => m.UserName, new {@class='textbox'})

o que não está funcionando.

Foi útil?

Solução

@Html.TextBoxFor(m => m.UserName, new {@class="textbox"})

Um literal de string c# não tira citações únicas.

'TextBox' -> "TextBox"

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top