<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Ben's Random Mumbles - All Comments</title><link>http://weblogs.asp.net/brichardson/default.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Debug Build: 20510.895)</generator><item><title>Movenext and ASP.net | keyongtech</title><link>http://weblogs.asp.net/brichardson/archive/2003/04/02/4632.aspx#7127897</link><pubDate>Wed, 17 Jun 2009 16:07:40 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7127897</guid><dc:creator>Movenext and ASP.net | keyongtech</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;Movenext and ASP.net | keyongtech&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7127897" width="1" height="1"&gt;</description></item><item><title>re: Forms authentication on multiple subfolders in asp.net</title><link>http://weblogs.asp.net/brichardson/archive/2003/05/19/7208.aspx#6326924</link><pubDate>Fri, 27 Jun 2008 11:14:32 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6326924</guid><dc:creator>Vetri</dc:creator><description>&lt;p&gt;I need vb script for subfolders form authentication&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6326924" width="1" height="1"&gt;</description></item><item><title>Feed Search Engine - All Fresh Articles And News Are Here</title><link>http://weblogs.asp.net/brichardson/archive/2003/02/28/3190.aspx#5336619</link><pubDate>Sun, 25 Nov 2007 19:20:33 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:5336619</guid><dc:creator>Feed Search Engine - All Fresh Articles And News Are Here</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;Feed Search Engine - All Fresh Articles And News Are Here&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=5336619" width="1" height="1"&gt;</description></item><item><title>re: System.Drawing.Color.What?</title><link>http://weblogs.asp.net/brichardson/archive/2003/02/28/3190.aspx#84401</link><pubDate>Fri, 05 Mar 2004 11:58:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:84401</guid><dc:creator>Marco Trova</dc:creator><description>Are you having any problems with TallPDF.NET?&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=84401" width="1" height="1"&gt;</description></item><item><title>re: Passing SqlDataReader to Repeater OK?</title><link>http://weblogs.asp.net/brichardson/archive/2003/04/02/4632.aspx#18385</link><pubDate>Mon, 07 Jul 2003 21:19:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:18385</guid><dc:creator>Gauthier</dc:creator><description>Hello, I myself use the technique used in ASP.NET forum, because I only work with custom entities rather than DataSet and I prefer to at least have an abstraction layer between my presentational code (custom controls) and my Data Access code.
&lt;br&gt;

&lt;br&gt;
About the code snippet just on top of this comment, you would add a test to check if the datareader is not null:
&lt;br&gt;
IDataReader dr = null;
&lt;br&gt;
try
&lt;br&gt;
{
&lt;br&gt;
dr = SqlHelper.ExecuteReader(.......);
&lt;br&gt;
}
&lt;br&gt;
finally 
&lt;br&gt;
{ 
&lt;br&gt;
if(dr != null) dr.Close(); 
&lt;br&gt;
} 
&lt;br&gt;

&lt;br&gt;
I myself use the same approach in every of my DAL methods that use datareader, needless to say that I love DataAccess Application Block
&lt;br&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=18385" width="1" height="1"&gt;</description></item><item><title>re: Passing SqlDataReader to Repeater OK?</title><link>http://weblogs.asp.net/brichardson/archive/2003/04/02/4632.aspx#12373</link><pubDate>Tue, 01 Apr 2003 05:25:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:12373</guid><dc:creator>Ben Richardson</dc:creator><description>Thanks James, I don't know why I didn't think of that.&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=12373" width="1" height="1"&gt;</description></item><item><title>re: Passing SqlDataReader to Repeater OK?</title><link>http://weblogs.asp.net/brichardson/archive/2003/04/02/4632.aspx#12372</link><pubDate>Tue, 01 Apr 2003 05:17:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:12372</guid><dc:creator>James Avery</dc:creator><description>I always try and explicitly close the reader, what if the repeater errors in the middle of binding?? The connection would be left open. Here is what I think you should do. Be sure and create the reader with the CommandBehavior.CloseConnection option.
&lt;br&gt;

&lt;br&gt;
SqlDataReader oReader;
&lt;br&gt;
try
&lt;br&gt;
{
&lt;br&gt;
    oReader = MyDAL.GetReader();
&lt;br&gt;
    MyRepeater.DataSource = oReader;
&lt;br&gt;
    MyRepeater.DataBind();
&lt;br&gt;
}
&lt;br&gt;
catch
&lt;br&gt;
{
&lt;br&gt;
\\exception work here
&lt;br&gt;
}
&lt;br&gt;
finally
&lt;br&gt;
{
&lt;br&gt;
   oReader.Close();
&lt;br&gt;
}
&lt;br&gt;

&lt;br&gt;
Or something like that.
&lt;br&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=12372" width="1" height="1"&gt;</description></item><item><title>ADO.NET tips  : ISerializable</title><link>http://weblogs.asp.net/brichardson/archive/2003/02/25/2915.aspx#20680</link><pubDate>Tue, 25 Feb 2003 05:08:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:20680</guid><dc:creator>TrackBack</dc:creator><description>ADO.NET tips  : ISerializable&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=20680" width="1" height="1"&gt;</description></item></channel></rss>