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....