Click here to Skip to main content
15,892,927 members
Home / Discussions / C#
   

C#

 
QuestionDynamic plugin handling? Pin
shuqi19-Nov-07 8:51
shuqi19-Nov-07 8:51 
AnswerRe: Dynamic plugin handling? Pin
Kristian Sixhøj19-Nov-07 9:03
Kristian Sixhøj19-Nov-07 9:03 
GeneralRe: Dynamic plugin handling? Pin
shuqi19-Nov-07 9:10
shuqi19-Nov-07 9:10 
GeneralRe: Dynamic plugin handling? Pin
Kristian Sixhøj19-Nov-07 9:18
Kristian Sixhøj19-Nov-07 9:18 
Questionplz help - AVI File Format Specification Pin
Mahmoud El-Shaffie19-Nov-07 8:17
Mahmoud El-Shaffie19-Nov-07 8:17 
AnswerRe: plz help - AVI File Format Specification Pin
Anthony Mushrow19-Nov-07 10:07
professionalAnthony Mushrow19-Nov-07 10:07 
QuestionInsert Data in to DB Table after verification [modified] Pin
Skanless19-Nov-07 8:00
Skanless19-Nov-07 8:00 
AnswerRe: Insert Data in to DB Table after verification Pin
pmarfleet19-Nov-07 8:48
pmarfleet19-Nov-07 8:48 
First of all, your code is really difficult to read. You should post it using PRE tags. Also consider indenting your code, as it is difficult to follow the flow.

The method ValidateAndAssignValues() does not return a value. How does the method InsertIntoDatabase know whether the validation was successful or not? From what I can see, the database insert will occur regardless of the result of the validation. Your validation method could return a bool value that indicates whether validation was successful or not. Your calling code would then need to check this value and use it to determine whether to proceed with adding the record.

One more thing, some of your error messages have spelling mistakes in them. You should consider checking your spelling before releasing your application to your users.

Paul Marfleet

"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush


GeneralRe: Insert Data in to DB Table after verification Pin
Skanless19-Nov-07 11:53
Skanless19-Nov-07 11:53 
GeneralRe: Insert Data in to DB Table after verification Pin
pmarfleet19-Nov-07 12:13
pmarfleet19-Nov-07 12:13 
GeneralRe: Insert Data in to DB Table after verification Pin
Skanless20-Nov-07 6:17
Skanless20-Nov-07 6:17 
Questionproblems with FileSystemWatcher Pin
stephan_00719-Nov-07 6:49
stephan_00719-Nov-07 6:49 
AnswerRe: problems with FileSystemWatcher Pin
Giorgi Dalakishvili19-Nov-07 7:50
mentorGiorgi Dalakishvili19-Nov-07 7:50 
GeneralRe: problems with FileSystemWatcher Pin
stephan_00719-Nov-07 10:49
stephan_00719-Nov-07 10:49 
GeneralRe: problems with FileSystemWatcher Pin
stephan_00719-Nov-07 22:06
stephan_00719-Nov-07 22:06 
AnswerRe: problems with FileSystemWatcher Pin
KKrista20-Nov-07 1:40
KKrista20-Nov-07 1:40 
QuestionFile Manipulation Pin
LCI19-Nov-07 6:40
LCI19-Nov-07 6:40 
AnswerRe: File Manipulation Pin
pmarfleet19-Nov-07 8:39
pmarfleet19-Nov-07 8:39 
GeneralRe: File Manipulation Pin
LCI19-Nov-07 16:43
LCI19-Nov-07 16:43 
Questionlogin page problem Pin
rocky81119-Nov-07 6:22
rocky81119-Nov-07 6:22 
AnswerRe: login page problem Pin
Anthony Mushrow19-Nov-07 6:33
professionalAnthony Mushrow19-Nov-07 6:33 
GeneralRe: login page problem Pin
rocky81119-Nov-07 6:34
rocky81119-Nov-07 6:34 
QuestionGeneral Questions using Attach Process [modified] Pin
Khoramdin19-Nov-07 6:18
Khoramdin19-Nov-07 6:18 
QuestionSome issue with thread synchronization & events Pin
Karma Komae19-Nov-07 5:44
Karma Komae19-Nov-07 5:44 
AnswerRe: Some issue with thread synchronization & events Pin
Judah Gabriel Himango19-Nov-07 9:31
sponsorJudah Gabriel Himango19-Nov-07 9:31 

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.