bang head here
Member
Im trying to use CommandBehavior.CloseConnection to close the data conection. When I try this method I get the following error:
No value given for one or more required parameters.
Exception Details: System.Data.OleDb.OleDbException: No value given for one or more required parameters.
Source Error:
Line 21: lstTest.DataSource = objCmd.ExecuteReader(CommandBehavior.CloseConnection)
What am I missing with this? Ive tried a few things and nothing seems to work. I can go back to the old db.close method, but this seems cleaner and more efficient. Any thoughts?
Cheers!
No value given for one or more required parameters.
Exception Details: System.Data.OleDb.OleDbException: No value given for one or more required parameters.
Source Error:
Line 21: lstTest.DataSource = objCmd.ExecuteReader(CommandBehavior.CloseConnection)
What am I missing with this? Ive tried a few things and nothing seems to work. I can go back to the old db.close method, but this seems cleaner and more efficient. Any thoughts?
Cheers!