I have one question regarding MVC (I am new to MVC)
My question is
In MVC with Razor for textbox we write like this
@Html.TextBoxFor(m=>m.name)
Now suppose I don't want to use Razor and html helper class. I want simple html input, like this
<input type="text" name='@Model.name' value='@Model.name'>
Is the above possible somehow?
you can use
<input type="text" name='@Html.NameFor(x => x.name)' value='@Model.name'>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With