Avatar of sanju_scaria_ee
sanju_scaria_ee
Flag 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
C#JScript

Avatar of undefined
Last Comment
HarryNS

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
daveamour

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
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).
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23