Click here to Skip to main content
15,896,557 members
Home / Discussions / C#
   

C#

 
GeneralRe: local file or public variables - what do oyu think? Pin
Mustafa Ismail Mustafa7-Apr-10 0:40
Mustafa Ismail Mustafa7-Apr-10 0:40 
GeneralRe: local file or public variables - what do oyu think? Pin
harold aptroot7-Apr-10 0:41
harold aptroot7-Apr-10 0:41 
AnswerRe: local file or public variables - what do oyu think? Pin
PIEBALDconsult7-Apr-10 3:49
mvePIEBALDconsult7-Apr-10 3:49 
QuestionProblem with printDocument1.PrinterSettings.Copies Pin
Reza Shojaee6-Apr-10 21:43
Reza Shojaee6-Apr-10 21:43 
QuestionScaleTransform Pin
Hema Bairavan6-Apr-10 21:24
Hema Bairavan6-Apr-10 21:24 
AnswerRe: ScaleTransform Pin
Luc Pattyn6-Apr-10 23:16
sitebuilderLuc Pattyn6-Apr-10 23:16 
QuestionNotify users Pin
Morgs Morgan6-Apr-10 20:30
Morgs Morgan6-Apr-10 20:30 
AnswerRe: Notify users Pin
Greg Chelstowski6-Apr-10 21:32
Greg Chelstowski6-Apr-10 21:32 
OK. First of all, look up parameterized queries, if you can't use stored procedures.
Second, I fail to realize what your problem is. Your while loop adds items to your collection, why not check the length of the collection after the while loop has run?
If it's 0 - obviously no records were returned.
And third: close your connection. Maybe add a finally statement to your try-catch?
Smile | :)
var question = (_2b || !(_2b));

GeneralRe: Notify users Pin
Morgs Morgan6-Apr-10 21:37
Morgs Morgan6-Apr-10 21:37 
GeneralRe: Notify users Pin
Greg Chelstowski6-Apr-10 21:42
Greg Chelstowski6-Apr-10 21:42 
Questionrecord no update Pin
mjawadkhatri6-Apr-10 20:05
mjawadkhatri6-Apr-10 20:05 
AnswerRe: record no update Pin
OriginalGriff6-Apr-10 22:25
mveOriginalGriff6-Apr-10 22:25 
AnswerRe: record no update Pin
Greg Chelstowski6-Apr-10 22:45
Greg Chelstowski6-Apr-10 22:45 
Questionplz help!!error use of unassigned local variable Pin
crisjala6-Apr-10 17:24
crisjala6-Apr-10 17:24 
AnswerRe: plz help!!error use of unassigned local variable Pin
Matt U.6-Apr-10 17:59
Matt U.6-Apr-10 17:59 
AnswerRe: plz help!!error use of unassigned local variable Pin
uraghu6-Apr-10 18:22
uraghu6-Apr-10 18:22 
AnswerRe: plz help!!error use of unassigned local variable Pin
Arun Jacob6-Apr-10 19:00
Arun Jacob6-Apr-10 19:00 
AnswerRe: plz help!!error use of unassigned local variable Pin
Morgs Morgan6-Apr-10 20:58
Morgs Morgan6-Apr-10 20:58 
AnswerRe: plz help!!error use of unassigned local variable Pin
OriginalGriff6-Apr-10 22:29
mveOriginalGriff6-Apr-10 22:29 
QuestionCreating a file and saving it to C Pin
Darrall6-Apr-10 14:09
Darrall6-Apr-10 14:09 
AnswerRe: Creating a file and saving it to C Pin
Super Lloyd6-Apr-10 14:32
Super Lloyd6-Apr-10 14:32 
AnswerRe: Creating a file and saving it to C Pin
harold aptroot6-Apr-10 15:03
harold aptroot6-Apr-10 15:03 
GeneralRe: Creating a file and saving it to C Pin
Darrall6-Apr-10 15:47
Darrall6-Apr-10 15:47 
GeneralRe: Creating a file and saving it to C Pin
Dan Mos6-Apr-10 16:49
Dan Mos6-Apr-10 16:49 
GeneralRe: Creating a file and saving it to C Pin
Darrall7-Apr-10 4:47
Darrall7-Apr-10 4:47 

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.