Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
I assigned array value to a variable in the view.and i want to use that value in the controller as an array.how can i pass that variable as a parameter for the method in the controller.
var gridArray = new Array(g_rows);
           for (var i = 1; i < g_rows; i++) {
                   gridArray[i] = new Array(g_colums);
                   for (var j = 1; j < g_colums; j++) {
                       var val = mygrid.cells(i,j).getValue();
                        gridArray[i][j] = val;

how can i pass this value to the controller as a parameter.
Posted 22-May-12 19:54pm
Edited 22-May-12 19:58pm
v3

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

I have done this, but using json and ajax. I am not sure you can do it with a postback.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 410
1 Sergey Alexandrovich Kryukov 350
2 ProgramFOX 275
3 Maciej Los 275
4 CHill60 260
0 OriginalGriff 360
1 ProgramFOX 265
2 Maciej Los 235
3 CHill60 200
4 RyanDev 170


Advertise | Privacy | Mobile
Web01 | 2.8.150331.1 | Last Updated 14 Aug 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100