Click here to Skip to main content
15,922,584 members
Home / Discussions / C#
   

C#

 
GeneralRe: c# classes methods Pin
OriginalGriff20-Dec-15 19:53
mveOriginalGriff20-Dec-15 19:53 
AnswerRe: c# classes methods Pin
OriginalGriff20-Dec-15 19:58
mveOriginalGriff20-Dec-15 19:58 
AnswerRe: c# classes methods Pin
BillWoodruff20-Dec-15 23:42
professionalBillWoodruff20-Dec-15 23:42 
QuestionIncorrect syntax near ',' Pin
Member 1144944719-Dec-15 5:00
Member 1144944719-Dec-15 5:00 
AnswerRe: Incorrect syntax near ',' Pin
Dave Kreskowiak19-Dec-15 5:07
mveDave Kreskowiak19-Dec-15 5:07 
First you opened your code up to SQL Injection attacks, risking the destruction of your database.

Second, your problem is easily solvable by using parameterized queries and the SqlParameter class.

Google for "C# sql parameterized queries" and you'll find everything you need.
A guide to posting questions on CodeProject

Click this: Asking questions is a skill.
Seriously, do it.

Dave Kreskowiak

GeneralRe: Incorrect syntax near ',' Pin
Member 1144944719-Dec-15 10:18
Member 1144944719-Dec-15 10:18 
GeneralRe: Incorrect syntax near ',' Pin
Dave Kreskowiak19-Dec-15 11:48
mveDave Kreskowiak19-Dec-15 11:48 
GeneralRe: Incorrect syntax near ',' Pin
Foothill21-Dec-15 6:00
professionalFoothill21-Dec-15 6:00 
GeneralRe: Incorrect syntax near ',' Pin
Dave Kreskowiak21-Dec-15 7:09
mveDave Kreskowiak21-Dec-15 7:09 
QuestionHow can I include house address finder in my application? Pin
naouf1019-Dec-15 3:21
naouf1019-Dec-15 3:21 
AnswerRe: How can I include house address finder in my application? Pin
OriginalGriff19-Dec-15 4:08
mveOriginalGriff19-Dec-15 4:08 
GeneralRe: How can I include house address finder in my application? Pin
Mycroft Holmes20-Dec-15 12:01
professionalMycroft Holmes20-Dec-15 12:01 
AnswerRe: How can I include house address finder in my application? Pin
Gerry Schmitz19-Dec-15 8:59
mveGerry Schmitz19-Dec-15 8:59 
GeneralRe: How can I include house address finder in my application? Pin
naouf1019-Dec-15 11:09
naouf1019-Dec-15 11:09 
GeneralRe: How can I include house address finder in my application? Pin
Gerry Schmitz19-Dec-15 12:01
mveGerry Schmitz19-Dec-15 12:01 
GeneralRe: How can I include house address finder in my application? Pin
naouf1020-Dec-15 2:22
naouf1020-Dec-15 2:22 
GeneralRe: How can I include house address finder in my application? Pin
jschell20-Dec-15 11:21
jschell20-Dec-15 11:21 
GeneralRe: How can I include house address finder in my application? Pin
naouf1021-Dec-15 1:56
naouf1021-Dec-15 1:56 
GeneralRe: How can I include house address finder in my application? Pin
jschell30-Dec-15 6:53
jschell30-Dec-15 6:53 
Questioncant run my C# program after installation - only if i Run as administrator Pin
goldsoft18-Dec-15 22:59
goldsoft18-Dec-15 22:59 
AnswerRe: cant run my C# program after installation - only if i Run as administrator Pin
Dave Kreskowiak19-Dec-15 4:18
mveDave Kreskowiak19-Dec-15 4:18 
QuestionRe: cant run my C# program after installation - only if i Run as administrator Pin
Richard MacCutchan19-Dec-15 21:15
mveRichard MacCutchan19-Dec-15 21:15 
QuestionStoring path of a selected Listbox File Pin
Member 1218422117-Dec-15 11:50
Member 1218422117-Dec-15 11:50 
AnswerRe: Storing path of a selected Listbox File Pin
Mycroft Holmes17-Dec-15 12:07
professionalMycroft Holmes17-Dec-15 12:07 
GeneralRe: Storing path of a selected Listbox File Pin
Member 1218422117-Dec-15 12:24
Member 1218422117-Dec-15 12:24 

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.