Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link
URL Rewriter Bot
URL Rewriter Bot

There are two ways to access code behind from the client.

  1. Store it in a collection sent with a request (normally this is through a form submit).
  2. Set up an "AJAX" call to a server side service through JavaScript.

There are variations on the above, but essentially you are consuming a service or you are posting back.

Looking at your code, you want the AJAX direction. I would start with this Stack Overflow postthis Stack Overflow post, as it covers the basics of passing an array back to the "service endpoint" of a code behind file.

There are two ways to access code behind from the client.

  1. Store it in a collection sent with a request (normally this is through a form submit).
  2. Set up an "AJAX" call to a server side service through JavaScript.

There are variations on the above, but essentially you are consuming a service or you are posting back.

Looking at your code, you want the AJAX direction. I would start with this Stack Overflow post, as it covers the basics of passing an array back to the "service endpoint" of a code behind file.

There are two ways to access code behind from the client.

  1. Store it in a collection sent with a request (normally this is through a form submit).
  2. Set up an "AJAX" call to a server side service through JavaScript.

There are variations on the above, but essentially you are consuming a service or you are posting back.

Looking at your code, you want the AJAX direction. I would start with this Stack Overflow post, as it covers the basics of passing an array back to the "service endpoint" of a code behind file.

Source Link
Gregory A Beamer
  • 17k
  • 3
  • 27
  • 32

There are two ways to access code behind from the client.

  1. Store it in a collection sent with a request (normally this is through a form submit).
  2. Set up an "AJAX" call to a server side service through JavaScript.

There are variations on the above, but essentially you are consuming a service or you are posting back.

Looking at your code, you want the AJAX direction. I would start with this Stack Overflow post, as it covers the basics of passing an array back to the "service endpoint" of a code behind file.