Im using MVC 3 asp.net
How can I add an item from ViewBag to html.TextBox like this:
ViewBag
html.TextBox
@Html.TextBox(\"txtName\",@ViewBag.Par
This will work: @Html.TextBox("txtName",ViewBag.Parameters.Name) assuming that ViewBag.Parameters.Name has a value
@Html.TextBox("txtName",ViewBag.Parameters.Name)
Just to elaborate, you are using @ symbol twice, which doesn't make sense.
Good luck