Click here to Skip to main content
15,911,715 members
Home / Discussions / C#
   

C#

 
AnswerRe: Drag doc file into textbox c# Pin
Peter Vertes5-Oct-07 5:13
Peter Vertes5-Oct-07 5:13 
QuestionCompiler Error CS2032 Pin
misavic5-Oct-07 3:19
misavic5-Oct-07 3:19 
QuestionTimestamps Pin
mpavas5-Oct-07 3:08
mpavas5-Oct-07 3:08 
AnswerRe: Timestamps Pin
Not Active5-Oct-07 3:26
mentorNot Active5-Oct-07 3:26 
GeneralRe: Timestamps Pin
mpavas5-Oct-07 3:39
mpavas5-Oct-07 3:39 
Questionsql select question Pin
NewToAspDotNet5-Oct-07 2:33
NewToAspDotNet5-Oct-07 2:33 
AnswerRe: sql select question Pin
Justin Perez5-Oct-07 2:36
Justin Perez5-Oct-07 2:36 
AnswerRe: sql select question Pin
Pete O'Hanlon5-Oct-07 2:42
mvePete O'Hanlon5-Oct-07 2:42 
I have a couple of thoughts here - the first being that you shouldn't use commandtext here. Use a Stored Procedure so that you don't end up opening your app up to s SQL Injection attack. Secondly, if you are going to return a Scalar, use
SELECT (COUNT(1)) FROM AfwTarieven WHERE Res_nr = @Res_Nr 
in your stored procedure. If it returns 0, then it isn't present - anything else and it is.

Deja View - the feeling that you've seen this post before.

GeneralRe: sql select question Pin
NewToAspDotNet5-Oct-07 3:56
NewToAspDotNet5-Oct-07 3:56 
GeneralRe: sql select question Pin
Pete O'Hanlon5-Oct-07 4:08
mvePete O'Hanlon5-Oct-07 4:08 
QuestionNullReferenceException Pin
greatM5-Oct-07 2:07
greatM5-Oct-07 2:07 
AnswerRe: NullReferenceException Pin
V.5-Oct-07 2:20
professionalV.5-Oct-07 2:20 
GeneralRe: NullReferenceException Pin
greatM5-Oct-07 2:28
greatM5-Oct-07 2:28 
GeneralRe: NullReferenceException Pin
V.5-Oct-07 2:33
professionalV.5-Oct-07 2:33 
GeneralRe: NullReferenceException Pin
greatM5-Oct-07 2:41
greatM5-Oct-07 2:41 
GeneralRe: NullReferenceException Pin
V.5-Oct-07 2:50
professionalV.5-Oct-07 2:50 
GeneralRe: NullReferenceException Pin
greatM5-Oct-07 2:59
greatM5-Oct-07 2:59 
GeneralRe: NullReferenceException Pin
V.5-Oct-07 3:04
professionalV.5-Oct-07 3:04 
GeneralRe: NullReferenceException Pin
greatM5-Oct-07 3:13
greatM5-Oct-07 3:13 
GeneralRe: NullReferenceException Pin
V.5-Oct-07 3:19
professionalV.5-Oct-07 3:19 
AnswerRe: NullReferenceException Pin
Dave Sexton5-Oct-07 2:21
Dave Sexton5-Oct-07 2:21 
GeneralRe: NullReferenceException Pin
greatM5-Oct-07 2:29
greatM5-Oct-07 2:29 
QuestionDo we require to set realm with proxy server credentials? Pin
ghorpade.sangram5-Oct-07 1:40
ghorpade.sangram5-Oct-07 1:40 
AnswerRe: Do we require to set realm with proxy server credentials? Pin
ghorpade.sangram11-Oct-07 19:24
ghorpade.sangram11-Oct-07 19:24 
QuestionDateTime converting... Pin
stancrm5-Oct-07 1:20
stancrm5-Oct-07 1:20 

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.