Skip to main content

Bug Tracker

Side navigation

#8279 closed bug (invalid)

Opened February 15, 2011 10:16AM UTC

Closed February 15, 2011 11:54AM UTC

Last modified March 14, 2012 08:41PM UTC

passing array as data in .load() method not recognized in controller

Reported by: malay.khandhediya@patni.com Owned by:
Priority: low Milestone: 1.next
Component: ajax Version: 1.4.3
Keywords: Cc:
Blocked by: Blocking:
Description

I am using asp.net mvc 3.0 and jquery

I am loading partial view dynamically through load method. The code is as below:

code in my js file:

dvLoadGrid.load('MyModelMethod', { 'names': ["name1", "name2"] }, function (data) { });

method in controller

public ActionResult MyModelMethod(string[] strArrArgs)
{
    return View("myPartialView");
}

The above method gets called but the parameter 'strArrArgs' is null. The same works with jQuery.ajax.

Am i missing something??

Please help...

Attachments (0)
Change History (1)

Changed February 15, 2011 11:54AM UTC by jitter comment:1

component: unfiledajax
description: I am using asp.net mvc 3.0 and jquery \ I am loading partial view dynamically through load method. The code is as below: \ \ code in my js file: \ dvLoadGrid.load('MyModelMethod', { 'names': ["name1", "name2"] }, function (data) { }); \ \ method in controller \ public ActionResult MyModelMethod(string[] strArrArgs) \ { \ return View("myPartialView"); \ } \ \ The above method gets called but the parameter 'strArrArgs' is null. The same works with jQuery.ajax. \ \ Am i missing something?? \ \ Please help... \ I am using asp.net mvc 3.0 and jquery \ I am loading partial view dynamically through load method. The code is as below: \ \ code in my js file: \ {{{ \ dvLoadGrid.load('MyModelMethod', { 'names': ["name1", "name2"] }, function (data) { }); \ }}} \ \ method in controller \ {{{ \ public ActionResult MyModelMethod(string[] strArrArgs) \ { \ return View("myPartialView"); \ } \ }}} \ \ The above method gets called but the parameter 'strArrArgs' is null. The same works with jQuery.ajax. \ \ Am i missing something?? \ \ Please help...
priority: undecidedlow
resolution: → invalid
status: newclosed

The jQuery bug tracker is not for support requests. Please try the #jquery irc channel on freenode or use the jQuery Forum for support requests which aren't related to jQuery core directly.

If you can indeed narrow this down to a bug in jQuery.load/jQuery.ajax please report back with a reduced test cases which reproduces the issue you are experiencing, on http://jsfiddle.net.


How to report bugs