|
-
Dec 18th, 2010, 03:47 PM
#1
Thread Starter
Fanatic Member
Returning datareader question
Hi all,
Had a datareader question.
Code:
Return myDataReader
I have a function which is retuning a datareader to various sections of my website which is then being bound to dropdown lists, gridviews, etc. Normally the last line in a function when is the data reader and connection getting closed?
Is it best practive to return a data reader or a dataset/datatable (or something even better than these two)?
Thanks,
Strick
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|