Click here to Skip to main content
16,006,442 members
Home / Discussions / C#
   

C#

 
GeneralRe: Question With Crystal Report Pin
Honeyboy_209-Jan-11 11:38
Honeyboy_209-Jan-11 11:38 
GeneralRe: Question With Crystal Report Pin
Henry Minute9-Jan-11 11:44
Henry Minute9-Jan-11 11:44 
GeneralRe: Question With Crystal Report Pin
Honeyboy_209-Jan-11 12:55
Honeyboy_209-Jan-11 12:55 
GeneralRe: Question With Crystal Report Pin
Honeyboy_209-Jan-11 13:42
Honeyboy_209-Jan-11 13:42 
GeneralRe: Question With Crystal Report Pin
Henry Minute10-Jan-11 0:50
Henry Minute10-Jan-11 0:50 
AnswerRe: Question With Crystal Report Pin
V.9-Jan-11 20:07
professionalV.9-Jan-11 20:07 
Questionmessenger with eboard Pin
om_metab9-Jan-11 4:08
om_metab9-Jan-11 4:08 
AnswerRe: messenger with eboard Pin
Richard MacCutchan9-Jan-11 4:24
mveRichard MacCutchan9-Jan-11 4:24 
AnswerRe: messenger with eboard Pin
Pete O'Hanlon9-Jan-11 9:30
mvePete O'Hanlon9-Jan-11 9:30 
GeneralRe: messenger with eboard Pin
fjdiewornncalwe25-Feb-11 10:51
professionalfjdiewornncalwe25-Feb-11 10:51 
AnswerRe: messenger with eboard Pin
Dave Kreskowiak9-Jan-11 10:36
mveDave Kreskowiak9-Jan-11 10:36 
QuestionAn Error Occured While Saving Scan Image Pin
Sanket.Patil9-Jan-11 0:30
Sanket.Patil9-Jan-11 0:30 
AnswerRe: An Error Occured While Saving Scan Image Pin
Dave Kreskowiak9-Jan-11 3:39
mveDave Kreskowiak9-Jan-11 3:39 
AnswerRe: An Error Occured While Saving Scan Image Pin
Abhinav S9-Jan-11 5:54
Abhinav S9-Jan-11 5:54 
AnswerRe: An Error Occured While Saving Scan Image Pin
RaviRanjanKr12-Jan-11 9:21
professionalRaviRanjanKr12-Jan-11 9:21 
QuestionWorking with wmp playlist Pin
polycom1238-Jan-11 22:42
polycom1238-Jan-11 22:42 
AnswerRe: Working with wmp playlist Pin
Henry Minute9-Jan-11 7:20
Henry Minute9-Jan-11 7:20 
AnswerRe: Working with wmp playlist Pin
Dalek Dave9-Jan-11 13:46
professionalDalek Dave9-Jan-11 13:46 
QuestionParameterized Query ........... which was not supplied Pin
Honeyboy_208-Jan-11 12:38
Honeyboy_208-Jan-11 12:38 
AnswerRe: Parameterized Query ........... which was not supplied PinPopular
Richard Andrew x648-Jan-11 12:49
professionalRichard Andrew x648-Jan-11 12:49 
GeneralRe: Parameterized Query ........... which was not supplied Pin
Honeyboy_208-Jan-11 12:59
Honeyboy_208-Jan-11 12:59 
AnswerRe: Parameterized Query ........... which was not supplied Pin
Luc Pattyn8-Jan-11 13:13
sitebuilderLuc Pattyn8-Jan-11 13:13 
GeneralRe: Parameterized Query ........... which was not supplied Pin
thatraja8-Jan-11 17:24
professionalthatraja8-Jan-11 17:24 
GeneralRe: Parameterized Query ........... which was not supplied Pin
Luc Pattyn8-Jan-11 17:29
sitebuilderLuc Pattyn8-Jan-11 17:29 
AnswerRe: Parameterized Query ........... which was not supplied Pin
Not Active9-Jan-11 4:44
mentorNot Active9-Jan-11 4:44 
You are also calling cmd.ExecuteNonQuery(); outside of your loop so only the last values entered will be updated in the database. You were advised of this before.

Further more, as you were advised before, you should be using the using statement. The database connection is not being closed properly because the exception is being thrown before your conn.Close() call. The using statement will prevent this.

I know the language. I've read a book. - _Madmatt

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.