Transfering array from javascript to c#
-
Hello Friends I make a array in javascript and i want to transfer that array values in c# arrays in my asp.net. how can it possible please help me thank you,
- GIVEN: The form name is FFFF - Create a hidden form variable on the aspx page with an name/id of HHH - GIVEN: the name of the arry is ZZZ - using Javascript assign the array value somewhere before postback - document.FFFF.HHH.value = ZZZ.join() //This creates a comma delimited string - Retrieve the hidden HHH on the server side and use.. Array x; string s = Request.Form["HHHH"]; X = s.Split(','); DTrent
-
- GIVEN: The form name is FFFF - Create a hidden form variable on the aspx page with an name/id of HHH - GIVEN: the name of the arry is ZZZ - using Javascript assign the array value somewhere before postback - document.FFFF.HHH.value = ZZZ.join() //This creates a comma delimited string - Retrieve the hidden HHH on the server side and use.. Array x; string s = Request.Form["HHHH"]; X = s.Split(','); DTrent
It's good but i am transfering more than 1 array from javascript to c#.net in asp.net on submit Should i use the loop for that means when i click on the submit that time n number of array from javascript must be transfer to c#. But how can i use the loop from c# and call the functions again and again on submit of that button Please explain it, Thank You Very Very MUCH!!!!!!!!!!!!!