Building a web site we can use many different technologies. This example show how integrate AJAX with data in JSON format. Data is build from  ASP.NET page (code in C#) reading from remote SQL Server.
 
To see the example at work click here: http://www.tonigreco.it/DBtoAJAXrequest2005/.
 
Javascript source code is adapted by me from article by Alessandro Lacava (http://www.alessandrolacava.com).
 
To download the project: http://www.tonigreco.it/_xna_/download.asp?name=DBtoAJAXrequest2005.zip.

When security is a concern it is better to use a JSON parser: http://www.json.org/js.html.
Javascript parser source code: http://www.json.org/json.js.
It’s also a good idea to use a "JavaScript Verifier": http://www.jslint.com/.

Annunci