I've created a few ASP.NET Ajax Enable Server controls.
There are 2 components to these controls: a server side Object that deals with the server side stuffs, and a client side Object that deals with the client side stuff.
My controls are pretty nifty and quite useful but I keep coming back come back to the same question:
How do I pass data from the JavaScript Object to the Server code?
Up 'til now I've been using HiddenFields in order to accomplish my needs but I find this cumbersome, bulky, rather nasty looking and feeling...there has to be a better way!
ASP.NET is smart enough to take the data from the server code and pass it into the JavaScript Object when it is loaded in the browser.
Why can't it take the data from the client code (the JavaScript Object) and pass it into the Server Object when it is loaded on the server?
Does anyone know how to do this?
Or even have an idea of what I should be googling for because everything I find on these controls doesn't cover how to pass information from the JavaScript Object to the Server Object (they're usually very basic, simple articles/tutorials and I'm starting to wonder if anyone's even attempted to do this)
I'm starting to look into JSON but I have no idea how I'm going to send the JSON Object to the server...or how to retrieve and this Object once it gets there...
Thanks,
-Frinny