Click here to Skip to main content
15,867,771 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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
Updated 22-May-12 18:58pm
v3

1 solution

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

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900