namespace Company.Project.DataProvider { partial class MyDataSet { partial class MyDataTable { } } } namespace Company.Project.DataProvider.MyDataSetTableAdapters { public partial class MyTableAdapter { public int CommandTimeout { set { for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { if ((this.CommandCollection[i] != null)) { this.CommandCollection[i].CommandTimeout = value; } } } } } } protected void ObjectDataSource1_ObjectCreating(object sender, ObjectDataSourceEventArgs e) { Company.Project.DataProvider.MyDataSetTableAdapters.MyTableAdapter adapter; adapter = (Company.Project.DataProvider.MyDataSetTableAdapters.MyTableAdapter)e.ObjectInstance; // Set command timeout to 2 minutes adapter.CommandTimeout = 120; }
ERROR MESSAGE:<br /> The type or namespace name 'Company' could not be found (are you missing a using directive or an assembly reference?)
Company.Project.DataProvider.MyDataSetTableAdapters
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)