From: Le r. A. <ar...@me...> - 2006-05-30 08:13:08
|
> Hello: >> I try the new dispose implemmentation but it doesn't work the properties >> have not changed and the connection still open :( >> >> I search also but for the moment i don't find witch method is called by t= >> he data binding method to close the datareader and the connection :( >> = > > And is the Dispose being called ?? No but i found the solution in fact when a control do a databind with a datareader the overiden method GetEnumerator is called and currently it returns "New Dbenumerator(this)" or it sould return "New DbEnumerator(this,(CommandBehavior.Default !=(CommandBehavior.CloseConnection & this.CommandBehavior)));" Thanks a lot Carlos for you help and please tell me if this solution is good for you ? |