I've came into a need of calling a server-side function from a javscript function.
As much as I know, this isn't really possible since JS is running on the client, thus it is only possible to call a static function (which is not in the same context).
I've read somewhere about the hidden button method, of hiding an asp server-side button, and then clicking it programmatically from JS, hence making postback and then calling the eventhandler.
Few questions about this method -
How good is this method? I mean, is this method is widely used or it considered to be primitve and old?
What are the down sides of this method?
Another thing I read about this method is that if you came to use this method it means that something is wrong with the overall page logic design. Is that on some level true? Is there perhaps a better way to deal with this problem?
Thanks ahead