Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Aug 03, 2012 01:57 PM by ASP.NETaholic
Sep 23, 2006 12:56 PM|LINK
I'm using sqldatareader to return data that i need and then bind it to the gridview. Anyway, I'm facing the above error message. Please help, thanks.
Sep 23, 2006 03:31 PM|LINK
Sep 25, 2006 04:03 AM|LINK
The error message is very direct-viewing[:)] I guess you're trying to new a SqlDataReader using some constructor, which is not supported. Instead, you can new a SqlDataReader from some funciton which returns a SqlDataReader, for example:
SqlCommand command =
new SqlCommand(queryString, connection);
SqlDataReader reader = command.ExecuteReader();
For more information, please refer to:
Sep 26, 2006 05:55 AM|LINK
Sep 26, 2006 03:26 PM|LINK
Aug 03, 2012 01:57 PM|LINK
I know this is an old thread, but why not leave the answer you arrived at?