ASP.NET binding to DataReader
- From: "Andrew Robinson" <nemoby@xxxxxxxxxxxxx>
- Date: Fri, 24 Aug 2007 09:37:37 -0700
I have a large collection of DAL code that returns lists of entities
(List<entity>) for general binding operations usually to a GridView via an
ObjectDataSource.
I think about binding directly to a SqlDataReader but how do I insure that
the Reader and its associated Connection both get closed? I would like to
continue using ObjectDataSources and am pretty sure I can pass a reader back
through this guy.
Thanks,
Andy
.
- Follow-Ups:
- Re: ASP.NET binding to DataReader
- From: Mark Rae [MVP]
- Re: ASP.NET binding to DataReader
- Prev by Date: RE: Why couldn't I effectively refresh my aspx page in VS.NET when debugging? (clearing Javascript cache?)
- Next by Date: Re: ASP.NET WebService Response - CPU at 50%
- Previous by thread: GridView with DataTable as data source and RowDataBound
- Next by thread: Re: ASP.NET binding to DataReader
- Index(es):
Loading