Click here to Skip to main content
15,880,608 members
Home / Discussions / C#
   

C#

 
AnswerRe: how to call web api passing multiple parameters in c# Pin
rincy sivan27-Feb-14 18:36
rincy sivan27-Feb-14 18:36 
GeneralRe: how to call web api passing multiple parameters in c# Pin
Richard MacCutchan27-Feb-14 22:03
mveRichard MacCutchan27-Feb-14 22:03 
QuestionCreate Rsa Signature Pin
upmnemam26-Feb-14 21:50
upmnemam26-Feb-14 21:50 
AnswerRe: Create Rsa Signature Pin
Hessam Jalali1-Mar-14 11:02
Hessam Jalali1-Mar-14 11:02 
QuestionSQL Server project Pin
Lifefor Rent26-Feb-14 19:36
Lifefor Rent26-Feb-14 19:36 
AnswerRe: SQL Server project Pin
OriginalGriff26-Feb-14 20:52
mveOriginalGriff26-Feb-14 20:52 
AnswerRe: SQL Server project Pin
ScottM127-Feb-14 20:53
ScottM127-Feb-14 20:53 
QuestionSystem.Argument Exception Pin
TheJudeDude26-Feb-14 10:26
TheJudeDude26-Feb-14 10:26 
I am attempting to rewrite a program using SqlCE database vs an OleDb database. The code below worked using OleDb, but now throws a System.Argument exception.
C#
SqlCeCommand GetAcctsCmd = new SqlCeCommand("SELECT ACCTSTORE, ACCTMGR, Count(ACCTMGR) AS [CountOfACCTMGR] FROM ALLACCOUNTS      WHERE (DATEDIFF(d, ACCTNEXTDUE, @TESTDATE) > 0 )";
GetAcctsCmd.Parameters.Add("@TESTDATE", SqlDbType.DateTime);
GetAcctsCmd.Parameters["@TESTDATE"].Value = dtPD;


The exception is being thrown on the last line of code above. dtPD is a DateTime.
What am I missing?

Thanks in advance.
Jude

AnswerRe: System.Argument Exception Pin
OriginalGriff26-Feb-14 10:36
mveOriginalGriff26-Feb-14 10:36 
GeneralRe: System.Argument Exception Pin
TheJudeDude26-Feb-14 10:46
TheJudeDude26-Feb-14 10:46 
GeneralRe: System.Argument Exception Pin
phil.o27-Feb-14 0:00
professionalphil.o27-Feb-14 0:00 
QuestionRe: System.Argument Exception Pin
Richard Deeming26-Feb-14 11:25
mveRichard Deeming26-Feb-14 11:25 
AnswerRe: System.Argument Exception Pin
TheJudeDude26-Feb-14 12:01
TheJudeDude26-Feb-14 12:01 
AnswerRe: System.Argument Exception Pin
Richard Andrew x6426-Feb-14 14:11
professionalRichard Andrew x6426-Feb-14 14:11 
GeneralRe: System.Argument Exception Pin
Richard Deeming27-Feb-14 1:28
mveRichard Deeming27-Feb-14 1:28 
AnswerRe: System.Argument Exception Pin
Bernhard Hiller26-Feb-14 21:13
Bernhard Hiller26-Feb-14 21:13 
QuestionMessage Closed Pin
26-Feb-14 10:11
jon15126-Feb-14 10:11 
AnswerMessage Removed Pin
26-Feb-14 10:18
mveOriginalGriff26-Feb-14 10:18 
GeneralMessage Removed Pin
26-Feb-14 10:34
jon15126-Feb-14 10:34 
GeneralMessage Removed Pin
26-Feb-14 11:21
mveOriginalGriff26-Feb-14 11:21 
AnswerMessage Removed Pin
26-Feb-14 10:57
jon15126-Feb-14 10:57 
AnswerMessage Removed Pin
26-Feb-14 11:19
mveDave Kreskowiak26-Feb-14 11:19 
GeneralMessage Removed Pin
26-Feb-14 19:00
jon15126-Feb-14 19:00 
QuestionExchange 2010 Using C# Pin
Arun Philip Reynolds26-Feb-14 9:47
Arun Philip Reynolds26-Feb-14 9:47 
QuestionHow to get Label value from parent repeater and use it for child repeater Pin
Dhyanga26-Feb-14 4:51
Dhyanga26-Feb-14 4:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.