p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   ASP.NET 2.0 Basics (http://p2p.wrox.com/forumdisplay.php?f=136)
-   -   Passing Javascript Variables to Asp.Net? (http://p2p.wrox.com/showthread.php?t=36445)

Grumpy December 25th, 2005 11:03 AM

Passing Javascript Variables to Asp.Net?
 
I can't seem to figure out how to pass a variable like an array from javascript variable to asp.net. Does anyone know how to do it?


Imar December 27th, 2005 05:46 PM

Are you talking about AJAX, or plain and simple posting back?

In the latter case, you could store the array's elements as a, say, comma separate list of values in a hidden form field that you can at the server to reconstruct a server-side array.

HtH,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.

idthiru September 2nd, 2006 05:06 AM

hello,

      Im also having trouble in passing object values from javascript to asp.net page with out posting back this will reduce some d/w u/p time in handling large size objects as I studied.
      Try search as serialization in javascript this may result some useful info.
      Please try to share with the forum any possible solutions if you got.
thanks,
......thiru




Quick209 September 8th, 2006 11:37 PM

There isn't anyway to send info from Java to server without postback. Java is client side and asp.net C# or vb code is server side. Like someone posted real quick, if you want to eliminate postback you will have to do AJAX. I have wrote a few pages that would take variables from java and store them in my ASP.NET 2.0 session through using the xmlHttp object.
You can find sources out there to help you. If this interests you, Wrox has written a good AJAX beginning book I have read through.


patelhitul September 8th, 2006 11:52 PM


I completely agree with Quick209 (I can't see his name).

Hitul J. Patel
Software Engineer


All times are GMT -4. The time now is 01:14 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.