Click here to Skip to main content
15,897,371 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,friends;
I am new in mvc3. and i want to get data of listbox to controller when form is post. i have get form data with team.cs file and create property public List<int> availableteam { get; set; } for geting listbox data but it is display null value. and i have been used
SQL
<%: Html.ListBoxFor(Model => Model.availableteam ,  new SelectList(Enumerable.Empty<SelectListItem>(), "user_id", "user_login_name"),
                               new { id = "ddlModels1" }) %>
on view
how can i get value?

Thank you.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900