Click here to Skip to main content
15,916,371 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
C#
@Html.ListBoxFor(x => x.SelectedUsers, new MultiSelectList(Model.Users, "value", "text"), new { multiple = "multiple", @tabindex = "15", @class = "multiselect" })


if i have 4 users selected and these these four items no one is first item means first items of users list is unselected before form posting but when form is posted then the first item of usersDropdown list will be selected along with all old selected users . so i want to prevent default or autometcally selection of first item of listbox aftr form posting .
please help me.

What I have tried:

Nothing.
Posted
Updated 21-Oct-16 0:27am
v2

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