I am coming from a PHP background, so I’m used to having a PHP file to handle all my ajax calls.
Lately I was introduced to the ASP.NET controls, and the environment in general.
I wonder, what is the correct way to handle ajax requests, when they are supposed to be called from a JavaScript file?
Also, if you have a better option than AJAX (with ASP.NET), I would like to see a small implementation of yours, using it, if possible.
Thanks! Guy
I have seen a lot of ajax implentations for ASP.NET… but i think the best of all them is my own… 😀
just make a javascript function like this:
Then call the function “callasync” with a url and div’s ID…
callasync(‘mypage.aspx?QS_KEY=123’, ‘divId’);
In the ASP.NET codebehind… Override the Render method like this: