Click here to Skip to main content
Rate this: bad
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 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 18:54pm
Edited 22-May-12 18:58pm

1 solution

Rate this: bad
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.

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

  Print Answers RSS
Your Filters
0 Sergey Alexandrovich Kryukov 800
1 OriginalGriff 503
2 Abhinav S 253
3 thatraja 245
4 Emre Ataseven 200
0 Sergey Alexandrovich Kryukov 8,282
1 OriginalGriff 4,750
2 Peter Leow 3,784
3 Maciej Los 3,515
4 Er. Puneet Goel 3,107

Advertise | Privacy | Mobile
Web02 | 2.8.140415.2 | Last Updated 14 Aug 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid