Very new to AJAX, but have learned a bit from online tutorials. If I was using PHP all would be well, but…
…I have to use VB.Net. Microsoft provides black magic tools (in the Visual Studio IDE) for making AJAX work, but using these seems hopelessly complicated and documentation for these tools covers only the simplest examples. By contrast, writing the scripts myself seems much easier, and I will understand what is going on.
So my question is, is it possible to write my own AJAX javascript (creating the XMLHttpRequest object, etc.), and have the server-side function be written in VB.Net instead of PHP? Has anyone ever tried this?
Of course. You can implement an HttpHandler on the server to give you full control of what happens with the request and the response. The Microsoft AJAX thing is kind of like a black magic box, but ASP.NET is not.
Here is a starting point:
And don’t forget to register the handler in the web.config 😉
Here is my best guess at what this should look like in VB.NET (NOTE: I have never written a single line of VB.NET)