I am using the Microsoft Application Data Block and am getting the
following error when trying to return a DataSet.
Object must implement IConvertible
Here is the code where the error occurs:
private DataSet getResults(string sd, string ed)
{
DataSet dsresults=new DataSet();
dsresults=SqlHelper.ExecuteDataset(
connection,
"prRedDecisions",
new SqlParameter("@startdate",DateTime.Parse(sd)),
new SqlParameter("@enddate",DateTime.Parse(ed))
);
return dsresults;
}
When not converting the Sql parameters to datetime, the error occurs
within the Application block itself. This tempts me to just go back to
the "old way" of doing thinkgs. Has anybody else had this problem or
know a solution? Thanks...
*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!