OleDbDataReader

Kertatrercews

New Member
In every example I've seen (4Guys articles, MSDN, .NET docs, and the O'Reilly book "Programming ASP.NET"), an OleDbDataReader object is obtained by calling the ExecuteReader method of the OleDbCommand object, in one of two forms:<BR><BR>objDataReader = objCommand.ExecuteReader();<BR>**OR**<BR>objDataReader = objCommand.ExecuteReader(CommandBehavior.CloseConn ection);<BR><BR>However, either way I make that call, the page returns an error with that line highlighted, saying that "No value given for one or more required parameters". Anyone else run into this? <BR><BR>The .NET docs say that ExecuteReader can be overloaded with the CommandBehavior value if desired, but I can't find anything about required parameters for this method.<BR><BR>The page I'm trying to run is only a few lines, and it and runs cleanly with that line commented out.<BR><BR>I miss classic ASP already.<BR><BR>Cheers.Since your file is only a few lines, post it all here. I have not run into the problem with the code you are trying to run. In reference to your last comment, you definitely WILL NOT miss classic ASP once you get a firm grasp on .NET. Since I have been using the framework, I am able to do twice as much in half the development time! I love it!chrisN,<BR><BR>Thanks for the attempt. I got myself sick and hadn't looked at the messageboard since 5/30, so I apologize for letting the thread go. I'm going to try the code on my web host first (maybe my personal machine's not set up properly), and if that doesn't work, I'll throw the code up on the board for review.<BR><BR>Thanks again.
 
Back
Top