Click here to Skip to main content
Sign Up to vote bad
good
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 - 18:54
Edited 22 May '12 - 18:58


1 solution

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
Your Filters
Interested
Ignored
     
0 OriginalGriff 353
1 Sergey Alexandrovich Kryukov 138
2 Mohammed Hameed 123
3 Santhosh G_ 113
4 Ron Beyer 64
0 Sergey Alexandrovich Kryukov 8,266
1 OriginalGriff 6,516
2 CPallini 3,533
3 Rohan Leuva 2,703
4 Maciej Los 2,234


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