Gantt SQL database tree
Creates Gantt tree data from plain database table by grouping; uses AJAX and .NET IDbCommand and IDataReader interfaces
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, ...).
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 GanttTreeDBData.aspx and GanttTreeDBUpload.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.
To permit 32bit application on 64bit IIS, go to IIS manager, display application pools list (usually in root under computer name).
Choose DefaultAppPool (or the pool you use for the ASP.NET applications the TreeGrid examples are run on), select Advanced configuration and set Permit 32bit application to true.
This example supports also free adding, moving and deleting tasks in tree levels.
The level names are shown in Levels columns.
The Levels and ID columns are shown just for debugging.
For more Gantt features see Gantt Local examples or Gantt tutorials.
For more ways of database communication see Basic Ajax or Form Submit ASP.NET examples.
IO communication with server and executed SQL commands