c# - How to get a javascript array that was created using ClientScriptManager.RegisterArrayDeclaration back to the server? -


i'm trying pass array of data between javascript , code-behind c#. data retrieved central database , translated array on page clientscriptmanager.registerarraydeclaration, user can edit it.

now want post data database code-behind code; how access modified array on client-side page again? what's reverse registerarraydeclaration, passing data client server?

thanks in advance!

combine array values comma-separated string , store string hiddenfield value in client-side javascript code. after postback read hidden field value in server-side code , use string.split method array.

if don't want make full postback - can make ajax call, sending data in post request , reading on server via request("name") method.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -