Is there a way to set a textbox size without using CSS (setting the columns or size attribute) ? If so, how?
@Html.TextBox("redeemamt", @Model.Amount)
@Html.TextBox("redeemamt", @Model.Amount, new {style = "width: 100px;"})
or you could try with this:
@Html.TextBox("redeemamt", @Model.Amount, new { size = "100" })
Sounds like you're looking for Html.TextArea:
@Html.TextArea((string)name, (string)value, (int)rows, (int)columns, (object)htmlAttributes)
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