Wrong Value being displayed
-
I defined a column in db(sql) as numeric...i'm retrieving it in code behind with a variable declared as double...and mailing it...recently i stored a value 5 , but in mail it is displayed as -1...when i did line by line execution the variable showed 5!!! not only this time in the past i received few mails with -1, instead of some other value!!!
-
I defined a column in db(sql) as numeric...i'm retrieving it in code behind with a variable declared as double...and mailing it...recently i stored a value 5 , but in mail it is displayed as -1...when i did line by line execution the variable showed 5!!! not only this time in the past i received few mails with -1, instead of some other value!!!
In which case your code is wrong. As all you have said is that the data is not as expected nobody can tell you why. At a guess somewhere between retriving the value and sending the mail you lose/corrupt it. Try debugging all the way through and you will see where it goes wrong.
Bob Ashfield Consultants Ltd Proud to be a 2009 Code Project MVP