%@ Page language="vb" debug="true"%>
DbCommand database access
Creates grid data from and saves changes back to database using <form> submit and .NET IDbCommand and IDataReader interfaces
Source files: DbCommand.aspx
(this html page and also server script that generates and processes XML data),
DBDef.xml
(static XML layout),
../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 DbCommand.aspx.
The 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.