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

C#

 
GeneralRe: Join Table with Data table Pin
Mohammad Soleimani7-Jul-14 1:27
Mohammad Soleimani7-Jul-14 1:27 
QuestionRe: Join Table with Data table Pin
Eddy Vluggen7-Jul-14 7:13
professionalEddy Vluggen7-Jul-14 7:13 
AnswerRe: Join Table with Data table Pin
Mohammad Soleimani7-Jul-14 7:59
Mohammad Soleimani7-Jul-14 7:59 
GeneralRe: Join Table with Data table Pin
Eddy Vluggen7-Jul-14 8:49
professionalEddy Vluggen7-Jul-14 8:49 
GeneralRe: Join Table with Data table Pin
Mohammad Soleimani7-Jul-14 16:46
Mohammad Soleimani7-Jul-14 16:46 
QuestionChainedFilter.cs is not available in Lucene.Net 3.0.3? Pin
Shubhanshu Pathak6-Jul-14 18:16
Shubhanshu Pathak6-Jul-14 18:16 
AnswerRe: ChainedFilter.cs is not available in Lucene.Net 3.0.3? Pin
Dave Kreskowiak6-Jul-14 18:21
mveDave Kreskowiak6-Jul-14 18:21 
GeneralRe: ChainedFilter.cs is not available in Lucene.Net 3.0.3? Pin
Shubhanshu Pathak6-Jul-14 19:17
Shubhanshu Pathak6-Jul-14 19:17 
QuestionOpening Sub menu and minimaize main form Pin
KaKoten6-Jul-14 2:43
KaKoten6-Jul-14 2:43 
AnswerRe: Opening Sub menu and minimaize main form Pin
OriginalGriff6-Jul-14 4:04
mveOriginalGriff6-Jul-14 4:04 
GeneralRe: Opening Sub menu and minimaize main form Pin
KaKoten6-Jul-14 12:08
KaKoten6-Jul-14 12:08 
AnswerRe: Opening Sub menu and minimaize main form Pin
Eddy Vluggen6-Jul-14 8:16
professionalEddy Vluggen6-Jul-14 8:16 
GeneralRe: Opening Sub menu and minimaize main form Pin
KaKoten6-Jul-14 12:09
KaKoten6-Jul-14 12:09 
QuestionCS0246: The type or namespace name 'UserInfoaa' could not be found (are you missing a using directive or an assembly reference?) Pin
Member 109016446-Jul-14 0:18
Member 109016446-Jul-14 0:18 
AnswerRe: CS0246: The type or namespace name 'UserInfoaa' could not be found (are you missing a using directive or an assembly reference?) Pin
Bernhard Hiller6-Jul-14 20:42
Bernhard Hiller6-Jul-14 20:42 
QuestionAdd coding to showing message box successful message sent in gmail smtp in c# 2008 Pin
KaKoten5-Jul-14 23:43
KaKoten5-Jul-14 23:43 
AnswerRe: Add coding to showing message box successful message sent in gmail smtp in c# 2008 Pin
OriginalGriff6-Jul-14 0:18
mveOriginalGriff6-Jul-14 0:18 
GeneralRe: Add coding to showing message box successful message sent in gmail smtp in c# 2008 Pin
KaKoten6-Jul-14 0:53
KaKoten6-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
KaKoten6-Jul-14 1:01 
QuestionDaraReader problem ... Pin
nassimnastaran5-Jul-14 9:32
nassimnastaran5-Jul-14 9:32 
AnswerRe: DaraReader problem ... Pin
PIEBALDconsult5-Jul-14 9:49
mvePIEBALDconsult5-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
nassimnastaran6-Jul-14 2:08 
GeneralRe: DaraReader problem ... Pin
PIEBALDconsult6-Jul-14 4:29
mvePIEBALDconsult6-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.

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.