ASP.NET Razor View Html.TextBox size/width
asp.net, razor
Solution
@Html.TextBox("redeemamt", @Model.Amount, new {style = "width: 100px;"})
or you could try with this:
@Html.TextBox("redeemamt", @Model.Amount, new { size = "100" })
Problem
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) ```