Page with code behind
Uses code excluded to .cs file by @Page Src attribute, uses AJAX and .NET DataTable class and DbDataAdapter interface
Do not run this file locally!
Run it from your local or remote web http server where is installed IIS and ASP.NET (1.0, 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, ...).
Source files:

CodeBehind.html

(this html page),

DBDef.xml

(static XML layout),

CodeBehind.aspx

(simple .aspx page that includes CodeBehind.aspx.cs script),

CodeBehind.aspx.cs

(included server script generates and processes XML data),

../Database.db

(source SQL database, table TableData)
This example uses

SQLite

../Database.db file as source SQL database. You can switch to

MS Access

MDB database by setting UseMDB property to true in CodeBehind.aspx.
The MS Access MDB database can be used only in 32bit mode of IIS. Also the ASP.NET service program must have write access to the Database.mdb file.