jQuery Breaks ASP.NET MVC Action Parameters

After upgrading to jQuery 1.4 my jQuery posts that passed in parameters to my MVC actions started failing. I noticed that “[]” was being appended to the parameters.

Instead of this:

It looked like this:

Turns out it had to do with how 1.4 serialized parameters. You can read more about it at the posts below. To fix it, I added this globally on the page for now:

// Enables for all serialization
.jQuery.ajaxSettings.traditional = true;


jQuery 1.4 breaks ASP.Net MVC actions with array parameters

Subscribe to comments Comment | Trackback |
Post Tags:

Browse Timeline

Comments ( 1 Comment )

j. jorgensen 6; a. willoughby 3; m. williams 2; b. herrera 2. primer tiempo: boerne champion 44, smithson valley 20. registros: smithson valley (7-11), campeón boerne (13-3). skidmore-tynan 64, karnes city 60skidmore-tynan: k. acosta 21, b. garza 17; a. hughlett 14; d. wilder 8, s. minter 2; t. merritt 2. karnes city: c. piepryzca 16; a. lundquist 10; l. pitts 8; m. kelly 7; k. ferguson 6, k. ramírez 5, b. hopkins 4; j. reyes 2, k. gotthardt 2. primer tiempo: skidmore-tynan 31, karnes city 29. registros: skidmore-tynan (1-0), karnes city (7-3). boerne ginebra 54, de san mary hall 24saint mary hall: r. cleland 10; m. cowan 6; p. cheatham 4; j. vance 2; h. ferry 2. boerne ginebra: a. leeder 23; c. lunsf
MBT calzados online

odmnmsas8262 added these pithy words on Jun 28 13 at 11:14 pm

Add a Comment

You must be logged in to post a comment.

© Copyright 2009-2010 Alpha Papa Hotel . Thanks for visiting!