Click here to Skip to main content
15,921,694 members
Home / Discussions / C#
   

C#

 
GeneralRe: some parameters or creditional have not specified in rdlc Pin
Abhishek Sur29-Nov-09 22:38
professionalAbhishek Sur29-Nov-09 22:38 
GeneralRe: some parameters or creditional have not specified in rdlc Pin
Abdul Rahman Hamidy29-Nov-09 23:41
Abdul Rahman Hamidy29-Nov-09 23:41 
QuestionGlitches while collecting a device data over USB-Serial converter. Pin
Raghunandan Sheshadri29-Nov-09 18:31
Raghunandan Sheshadri29-Nov-09 18:31 
AnswerMessage Closed Pin
29-Nov-09 19:11
stancrm29-Nov-09 19:11 
GeneralRe: Glitches while collecting a device data over USB-Serial converter. Pin
Raghunandan Sheshadri30-Nov-09 21:41
Raghunandan Sheshadri30-Nov-09 21:41 
QuestionConvert problem! Pin
miss YY29-Nov-09 15:14
miss YY29-Nov-09 15:14 
AnswerRe: Convert problem! Pin
Luc Pattyn29-Nov-09 16:20
sitebuilderLuc Pattyn29-Nov-09 16:20 
AnswerRe: Convert problem! [modified] Pin
dan!sh 29-Nov-09 16:22
professional dan!sh 29-Nov-09 16:22 
1. You are comparing a date and integer. Compare dates with dates. You should use your date time picker's value right away.

2. See you select command:

miss YY wrote:
select * from table_inf where time>=mm and time<=nn


Entire thing is a string. How is it supposed to get the values in mm and nn? You should read about SQLParameters class and use it.

Also, from the ToString overload you are using, it shows that you are just checking the day part of the date. Do you really want to do that way? If you want to check that way, you should use day(time) instead on time in your SQL and then compare. But be sure that this will ONLY compare the day part and not the month and year.


Edit: Missed what Luc spotted. Both mm and nn will have same values. So, why not just check equality with one value instead of two?

50-50-90 rule: Anytime I have a 50-50 chance of getting something right, there's a 90% probability I'll get it wrong...!!

modified on Sunday, November 29, 2009 10:29 PM

AnswerRe: Convert problem! Pin
N a v a n e e t h29-Nov-09 16:22
N a v a n e e t h29-Nov-09 16:22 
GeneralRe: Convert problem! Pin
PIEBALDconsult30-Nov-09 5:10
mvePIEBALDconsult30-Nov-09 5:10 
QuestionUnderstanding MSDTC in Windows. Pin
mittalpa29-Nov-09 13:41
mittalpa29-Nov-09 13:41 
AnswerRe: Understanding MSDTC in Windows. Pin
N a v a n e e t h29-Nov-09 16:27
N a v a n e e t h29-Nov-09 16:27 
QuestionNew to C#, wants to put it all together... Pin
logikos29-Nov-09 12:04
logikos29-Nov-09 12:04 
AnswerRe: New to C#, wants to put it all together... Pin
T210229-Nov-09 13:14
T210229-Nov-09 13:14 
AnswerRe: New to C#, wants to put it all together... Pin
minnie mouse1-Dec-09 12:31
minnie mouse1-Dec-09 12:31 
Questionmagic wand Pin
bayram_ytu29-Nov-09 9:59
bayram_ytu29-Nov-09 9:59 
AnswerRe: magic wand Pin
Alan N29-Nov-09 13:16
Alan N29-Nov-09 13:16 
GeneralRe: magic wand Pin
bayram_ytu29-Nov-09 13:31
bayram_ytu29-Nov-09 13:31 
AnswerRe: magic wand Pin
_Maxxx_30-Nov-09 17:03
professional_Maxxx_30-Nov-09 17:03 
QuestionConfigurationProperty Validator Pin
koleraba29-Nov-09 7:42
koleraba29-Nov-09 7:42 
QuestionCopyright Question Pin
Zaegra29-Nov-09 6:36
Zaegra29-Nov-09 6:36 
AnswerMessage Closed Pin
29-Nov-09 7:20
stancrm29-Nov-09 7:20 
GeneralRe: Copyright Question Pin
Zaegra29-Nov-09 7:41
Zaegra29-Nov-09 7:41 
QuestionRe: Copyright Question Pin
Richard MacCutchan29-Nov-09 9:58
mveRichard MacCutchan29-Nov-09 9:58 
GeneralRe: Copyright Question Pin
Zaegra29-Nov-09 11:01
Zaegra29-Nov-09 11:01 

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.