I just have started ajax using jquery and static page behind methods.
As jquery code is visible on client side, please guide how I can hide page url and its method name. I mean to ask is this way this page and static method is open to every one, can something be done to secure it ?
Thanks for guiding.
You can secure an AJAX call using the usual HTTPS protocol, but its impossible to hide your method or URL you are calling, at least entirely hide it. You can obfuscate your code of course, using something like packer, but again, as you said, since jQuery is all client-side, whoever is accessing the page will know what's going on, at least to some extent.