ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
Page not found in MultiLookup
Title:
B
I
{code}
?
I could not give you an example that gives you the problem, but I try to explain it to you On one page (asp.net .core 2.x), I have a MultiLookup, Everything works fine, when the popup appears, if I do searches, when I select. But when I press the OK button, to confirm the selection, an error screen with "Page not found" appears on my page I do not understand....
Save Changes
Cancel
mtugnoli
asked at 24 Jul 2020
think if you open the network tab in the console you should see a failed request, so you're likely missing the `GetItems` action in the controller, or you've set a wrong URL
at 24 Jul 2020
Omu
You can see network tab on http://test.zerogi.it/MultiLookup.png PS: /pagina-non-trovata means "pagenotfound" this is my GetItems : public virtual ActionResult GetItem(IEnumerable<int> v) { var list = _userService.GetAllUsers(); return Json(list.Where(o => v.Contains(o.Id)).ToArray().Select(o => new KeyContent { Key = o.Id, Content = o.FullName, Encode = false })); }
at 24 Jul 2020
mtugnoli
yes, so you're missing an `s` in your action name, also your server is returning 302 when it should 404
at 24 Jul 2020
Omu
I was going crazy Thanks and sorry
at 24 Jul 2020
mtugnoli
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