I am doing an Autocomplete in Mvc . After a user search and populate an Editor Box and hit OK, I want to send the data to hiddenFor model to save in the sql server database.
I am doing something like this but is not working.
@Html.Editor("SearchString", null, new { id = "SearchString1", @style = "width: 400px; Height: 40px" })
@Html.HiddenFor(model => model.SelectedUsers, new { @id = "Hidden1" })
Enter users to begin searching
Then in the controller
ItemSelected.SelectedUsers = ViewData["SearchString"];
Replies
Know the answer? Post it — somebody with the same question will find it here.