Link to home
Start Free TrialLog in
Avatar of sanju_scaria_ee
sanju_scaria_eeFlag for India

asked on

how to pass an array from javascript to c# codebehind file

Hi Experts,

How to pass a javascript arry to the C# code behind file.

thanks in advance....
sanju
ASKER CERTIFIED SOLUTION
Avatar of daveamour
daveamour
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of HarryNS
HarryNS

You can create a XML file and send it. Parse it in the code behind. Usually developers do so, for CALLBACK mechanism.

When huge list of information that needs to be passed to Code Behind from JS on CALLBACK, best way is to form the XML in JS (string concatenation) and send it to Code behind. There use a serializer object to convert that to a specific class file (object).