Sep 1, 2007

Parameterized Constructor of ObjectDataSource

Some time if the ObjectDataSource need a parameter instructor you can supply it in the ObjectCreating event.
            protected void sourceEmployees_ObjectCreating(object sender,
            ObjectDataSourceEventArgs e)
            {
            e.ObjectInstance = new DatabaseComponent.EmployeeDB("...");
            }