Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Transfering array from javascript to c#

Transfering array from javascript to c#

Scheduled Pinned Locked Moved ASP.NET
csharpjavascriptasp-netdata-structureshelp
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Anonymous
    wrote on last edited by
    #1

    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,

    B 1 Reply Last reply
    0
    • A Anonymous

      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,

      B Offline
      B Offline
      bnieland
      wrote on last edited by
      #2

      - 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

      A 1 Reply Last reply
      0
      • B bnieland

        - 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

        A Offline
        A Offline
        Anonymous
        wrote on last edited by
        #3

        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!!!!!!!!!!!!!

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups