Click here to Skip to main content
12,696,632 members (31,157 online)
Rate this:
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 19:54pm
Updated 22-May-12 19: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
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170118.1 | Last Updated 14 Aug 2012
Copyright © CodeProject, 1999-2017
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