• Home
  • Jobs
  • Courses
  • Questions
  • Teachers
  • For business
  • ES/EN

0

38
Views
ajax.beginform problem with sending object to controller

i have a problem with ajax.beginform, maybe someone can help.

    @using (Ajax.BeginForm("action", "controller", test, new AjaxOptions()
{
    InsertionMode = InsertionMode.Replace,
    UpdateTargetId = "formContent",
    OnSuccess = "formSuccess",
    OnBegin = "showLoader",
}, new { id="test123" }))

where test is object declared in viewmodel robot. action accepts viewmodel robot. every values from form is ok, but test is always null, but js function send array of numbers. Can someone tell me what im doing wrong?

3 months ago ·

Santiago Trujillo

Answer question
Find remote jobs
Loading

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post job Plans Our process Sales
Legal
Terms and conditions Privacy policy
© 2022 PeakU Inc. All Rights Reserved.