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