ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
get selected values from Multiselect
Title:
B
I
{code}
?
I have a code like this on MVC page, C# project, Awesome v.7.6: @(Html.Awe().Multiselect(new MultiselectOpt { Name = "skinBenefitName", Value = Model._goodBenefits, Caption="Select skin benefits", Url = Url.Action("GetSkinBenefits", "Lists"), NoSelectClose=true, ClearBtn = true })) The question is: how can i get array of selected values in controller and instead of custom Caption value standard "pease select" shows when nothing selected. Thank you.
Save Changes
Cancel
Vladimir Kerzhentsev
asked at 06 Feb 2024
you get the selected value in the controller by sending them in some way, usually with a form post, or getting the value with js and sending it with an ajax request, depends on your case https://www.aspnetawesome.com/learn/mvc/General#Getting-and-setting-value
at 06 Feb 2024
Omu
Answers
please
Sign In
to leave an answer
By accessing this site, you agree to store cookies on your device and disclose information in accordance with our
cookie policy
and
privacy policy
.
OK