Click here to Skip to main content
15,395,290 members
Home / Discussions / C#
   

C#

 
GeneralRe: Add coding to showing message box successful message sent in gmail smtp in c# 2008 Pin
KaKoten6-Jul-14 0:53
MemberKaKoten6-Jul-14 0:53 
GeneralRe: Add coding to showing message box successful message sent in gmail smtp in c# 2008 Pin
OriginalGriff6-Jul-14 0:54
mveOriginalGriff6-Jul-14 0:54 
GeneralRe: Add coding to showing message box successful message sent in gmail smtp in c# 2008 Pin
KaKoten6-Jul-14 1:01
MemberKaKoten6-Jul-14 1:01 
QuestionDaraReader problem ... Pin
nassimnastaran5-Jul-14 9:32
Membernassimnastaran5-Jul-14 9:32 
AnswerRe: DaraReader problem ... Pin
PIEBALDconsult5-Jul-14 9:49
professionalPIEBALDconsult5-Jul-14 9:49 
GeneralRe: DaraReader problem ... Pin
DamithSL5-Jul-14 18:57
professionalDamithSL5-Jul-14 18:57 
GeneralRe: DaraReader problem ... Pin
nassimnastaran6-Jul-14 2:08
Membernassimnastaran6-Jul-14 2:08 
GeneralRe: DaraReader problem ... Pin
PIEBALDconsult6-Jul-14 4:29
professionalPIEBALDconsult6-Jul-14 4:29 
I understand, but are there ever no rows? Or do you get a NULL (DBNull.Value) when there are no matching rows?

Even if you do get no rows, it's better to handle that with an else on the other if. You don't need two ifs; you don't need to test HasRows.

HasRows is not a member of the IDataReader[^] interface so you can't count on it being in every database system you use (if you ever have to use multiple database system, like I do). Every time I've tried to use HasRows I got burnt.
You'll never get very far if all you do is follow instructions.

GeneralRe: DaraReader problem ... Pin
nassimnastaran6-Jul-14 7:51
Membernassimnastaran6-Jul-14 7:51 
QuestionMood(emotion) detection in real time Pin
JanaRMS5-Jul-14 6:29
MemberJanaRMS5-Jul-14 6:29 
AnswerRe: Mood(emotion) detection in real time Pin
Pete O'Hanlon5-Jul-14 11:55
mvaPete O'Hanlon5-Jul-14 11:55 
QuestionReactiveCommand CanExecute is not updating button Pin
J. Holzer5-Jul-14 1:22
MemberJ. Holzer5-Jul-14 1:22 
Questionreferenced parameter Pin
Gilbert Consellado5-Jul-14 0:24
professionalGilbert Consellado5-Jul-14 0:24 
AnswerRe: referenced parameter Pin
OriginalGriff5-Jul-14 0:38
mveOriginalGriff5-Jul-14 0:38 
GeneralRe: referenced parameter Pin
Gilbert Consellado5-Jul-14 1:04
professionalGilbert Consellado5-Jul-14 1:04 
GeneralRe: referenced parameter Pin
harold aptroot5-Jul-14 0:56
Memberharold aptroot5-Jul-14 0:56 
GeneralRe: referenced parameter Pin
Gilbert Consellado5-Jul-14 1:07
professionalGilbert Consellado5-Jul-14 1:07 
GeneralRe: referenced parameter Pin
sankarsan parida6-Jul-14 7:52
professionalsankarsan parida6-Jul-14 7:52 
GeneralRe: referenced parameter Pin
Gilbert Consellado9-Jul-14 23:32
professionalGilbert Consellado9-Jul-14 23:32 
Questionc#, VSTO, Template Project, opening Document without error messge? Pin
Kristian Holm4-Jul-14 8:19
MemberKristian Holm4-Jul-14 8:19 
QuestionHow to Connect Marquee with database Pin
Member 102260014-Jul-14 7:07
MemberMember 102260014-Jul-14 7:07 
AnswerRe: How to Connect Marquee with database Pin
Richard MacCutchan4-Jul-14 7:23
mveRichard MacCutchan4-Jul-14 7:23 
GeneralRe: How to Connect Marquee with database Pin
Member 102260014-Jul-14 8:13
MemberMember 102260014-Jul-14 8:13 
SuggestionRe: How to Connect Marquee with database Pin
Richard MacCutchan4-Jul-14 20:04
mveRichard MacCutchan4-Jul-14 20:04 
Questionresponsive GUI text change / database instant search Pin
Member 817404-Jul-14 5:17
MemberMember 817404-Jul-14 5:17 

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.