Click here to Skip to main content
15,172,951 members
Home / Discussions / C#
   

C#

 
GeneralRe: SqlDataReader is not returning all rows Pin
NarVish2-Sep-13 6:36
MemberNarVish2-Sep-13 6:36 
GeneralRe: SqlDataReader is not returning all rows Pin
OriginalGriff2-Sep-13 9:04
mveOriginalGriff2-Sep-13 9:04 
AnswerRe: SqlDataReader is not returning all rows Pin
Eddy Vluggen2-Sep-13 7:23
professionalEddy Vluggen2-Sep-13 7:23 
GeneralRe: SqlDataReader is not returning all rows Pin
Manfred Rudolf Bihy2-Sep-13 9:42
professionalManfred Rudolf Bihy2-Sep-13 9:42 
AnswerRe: SqlDataReader is not returning all rows Pin
Pete O'Hanlon2-Sep-13 9:45
mvaPete O'Hanlon2-Sep-13 9:45 
GeneralRe: SqlDataReader is not returning all rows Pin
NarVish2-Sep-13 20:40
MemberNarVish2-Sep-13 20:40 
GeneralRe: SqlDataReader is not returning all rows Pin
Pete O'Hanlon2-Sep-13 21:22
mvaPete O'Hanlon2-Sep-13 21:22 
QuestionQuestion about using an if in a string Pin
skeeterz711-Sep-13 18:35
Memberskeeterz711-Sep-13 18:35 
Hi,

New to coding. Trying to teach myself. I am wanting to test an input against a name and if it is true then proceed. If it is not true display something different. Here is what I wrote along with the error. Obviously it's wrong. Any help would be appreciated. Thanks

C#
 Console.WriteLine(name + " What is her name?");
String herName = Console.ReadLine();
            if (herName == ashley)
                 {
                   do this stuff...
                 }

 Error	1  The name 'ashley' does not exist in the current context


modified 1-Sep-13 23:52pm.

AnswerRe: Question about using an if in a string Pin
Dave Kreskowiak1-Sep-13 19:05
mveDave Kreskowiak1-Sep-13 19:05 
GeneralRe: Question about using an if in a string Pin
skeeterz711-Sep-13 19:31
Memberskeeterz711-Sep-13 19:31 
GeneralRe: Question about using an if in a string Pin
Dave Kreskowiak1-Sep-13 19:37
mveDave Kreskowiak1-Sep-13 19:37 
GeneralRe: Question about using an if in a string Pin
skeeterz711-Sep-13 19:46
Memberskeeterz711-Sep-13 19:46 
GeneralRe: Question about using an if in a string Pin
BillWoodruff1-Sep-13 20:42
mveBillWoodruff1-Sep-13 20:42 
GeneralRe: Question about using an if in a string Pin
OriginalGriff2-Sep-13 4:58
mveOriginalGriff2-Sep-13 4:58 
GeneralRe: Question about using an if in a string Pin
AmitGajjar2-Sep-13 21:10
professionalAmitGajjar2-Sep-13 21:10 
GeneralRe: Question about using an if in a string Pin
OriginalGriff2-Sep-13 22:24
mveOriginalGriff2-Sep-13 22:24 
GeneralRe: Question about using an if in a string Pin
Dave Kreskowiak2-Sep-13 6:58
mveDave Kreskowiak2-Sep-13 6:58 
GeneralRe: Question about using an if in a string Pin
blitzkrieged2-Sep-13 15:16
Memberblitzkrieged2-Sep-13 15:16 
AnswerRe: Question about using an if in a string Pin
liveoffedge2-Sep-13 1:15
professionalliveoffedge2-Sep-13 1:15 
GeneralRe: Question about using an if in a string Pin
OriginalGriff2-Sep-13 4:49
mveOriginalGriff2-Sep-13 4:49 
GeneralRe: Question about using an if in a string Pin
Keith Barrow2-Sep-13 7:21
professionalKeith Barrow2-Sep-13 7:21 
GeneralRe: Question about using an if in a string Pin
skeeterz713-Sep-13 7:30
Memberskeeterz713-Sep-13 7:30 
AnswerRe: Question about using an if in a string Pin
AmitGajjar2-Sep-13 21:02
professionalAmitGajjar2-Sep-13 21:02 
QuestionDistinct Row or Rows in a datatable Pin
smh139231-Aug-13 23:00
Membersmh139231-Aug-13 23:00 
AnswerRe: Distinct Row or Rows in a datatable Pin
Mycroft Holmes31-Aug-13 23:42
professionalMycroft Holmes31-Aug-13 23:42 

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.