View Single Post
  #4 (permalink)  
Old August 3rd, 2011, 11:14 AM
Imar's Avatar
Imar Imar is offline
Wrox Author
Points: 71,950, Level: 100
Points: 71,950, Level: 100 Points: 71,950, Level: 100 Points: 71,950, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,060
Thanks: 80
Thanked 1,585 Times in 1,561 Posts
Default

And which "Object reference [is] not set to an instance of an object"? I assume the TextBox, as I can't see other problems with the code.

Question: why are you using a TextBox in the first place for debugging? Why not set a breakpoint, hit F5 and look at recordsReturned while you step through the code?


Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
Reply With Quote
The Following User Says Thank You to Imar For This Useful Post:
esherr01 (August 3rd, 2011)