How to pass a javascript object back to the server?

How to send client side JavaScript object to server ASP.NET page?

  • Answer:

    you mean write javascript on a asp.net page? <script>window.alert('helloworld') </script> you talking about Postback? im not sure

Rasika at Yahoo! Answers Visit the source

Was this solution helpful to you?

Other answers

Easiest way is to create a hidden input field that runs on the server, like this <input type="hidden" runat="server" id="mstoEdit" NAME="mstoEdit"> then in your codebehind c# it woudl be declared like this protected System.Web.UI.HtmlControls.HtmlInputHidd… mstoEdit; you can write to it from the server or client and read from it on the server or client. Hope this helps aw

AW

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.