1

I have an array in jquery, and I'm adding values on runtime to this array.After I will access this aray from asp.net page ie: jquery:

var marker=[];
marker[0]='world';
marker[1]='sky';

asp.net:

string []values=new string[];
values[0]=marker[0];
values[1]=marker[1];

how can I do it, is there any way to access jquery veriables from asp.net pages

Selçuklu Ebrar
  • 2,059
  • 3
  • 14
  • 11

1 Answers1

1

you can store these values in a hidden field and read them in asp.net code behind

examples here :

To get value set in javascript in code behind

Passing value from code-behind to Javascript

Edit

you can pass this array to a WebMethod using ajax post

JQuery AJAX post to asp.net webmethod never getting called

Community
  • 1
  • 1
Mahmoud Farahat
  • 5,364
  • 4
  • 43
  • 59