If you need help compiling/running with NUnit let me know. One comment: you have set Use Preload to true in your connection string. Use Extended Types = false; the exception changes to: System. However, in some cases, the application or the user needs to know the IDENTITY column's assigned value as soon as you add the row to the database.For example, an order-entry application that uses an IDENTITY column for the order ID might need to provide an order-confirmation number to the customer immediately.This is a legacy feature and it's strongly recommended not to use it (it have been removed from the upcoming major version 3.0). Invalid Cast Exception occurred HResult=-2147467262 Message=Specified cast is not valid.
These method will be invoked automatically by the framework, when change happens.
The Grid View control is the successor to the Data Grid and extends it in a number of ways.
With this Grid View control, you could display an entire collection of data, easily add sorting and paging, and perform inline editing.
By combining these controls, you can easily set up master-detail views using very little code and sometimes no code at all.
From the following chapters you can see some important operations in ASP.