how to add default value to the textbox helper through viewdata in asp.net mvc?
- by Renu
i want to add default value to the html text box by the view data. the foolwing code will give an idea wht i want to do exactly
<%= Html.TextBox("quantity", <%= Html.Encode(ViewData["quantity"]) %, new { maxlength = 4 })%
but it shows an error. plz tel me the solution for this.
thank in advance....