Click here to Skip to main content
15,891,529 members
Home / Discussions / C#
   

C#

 
GeneralDataGrid DoubleClick Event Pin
Afief28-May-05 2:26
Afief28-May-05 2:26 
GeneralRe: DataGrid DoubleClick Event Pin
hasansheik28-May-05 2:31
hasansheik28-May-05 2:31 
GeneralRe: DataGrid DoubleClick Event Pin
Afief28-May-05 2:58
Afief28-May-05 2:58 
QuestionHow can write sync sensittivity to live video Pin
Member 110343128-May-05 1:05
Member 110343128-May-05 1:05 
GeneralDial Up program Pin
ksanju100028-May-05 0:50
ksanju100028-May-05 0:50 
Generalhelp me about insert Pin
albCode28-May-05 0:35
albCode28-May-05 0:35 
GeneralRe: help me about insert Pin
Christian Graus28-May-05 0:54
protectorChristian Graus28-May-05 0:54 
GeneralRe: help me about insert Pin
cjengler28-May-05 1:44
cjengler28-May-05 1:44 
seferi wrote:
string ins = "INSERT INTO tabela(Column1,Column2,Column3,Columns4)VALUES ("+
"'"+ this.txtColumn1.Text + "'" + ","+
"'" + this.txtColumn2.Text + "'" + "," +
"'" + this.txtColumn3.Text + "'" + "," +
"'" + this.txtColumns4.Text + ")";


Your first problem comes after your this.txtColumns4.Text. You forgot the ending "'".

Like I said, that is your first problem and actually your smallest. Your biggest problem is that you are open for Sql Injection errors. You should really be using paramterized queries to prevent this.
Please see http://www.codeproject.com/useritems/SqlWrapper.asp[this]
Generalwindows programming Pin
nume27-May-05 23:58
nume27-May-05 23:58 
GeneralRe: windows programming Pin
MoustafaS28-May-05 0:20
MoustafaS28-May-05 0:20 
GeneralRe: windows programming Pin
nume28-May-05 0:32
nume28-May-05 0:32 
GeneralRe: windows programming Pin
MoustafaS28-May-05 0:34
MoustafaS28-May-05 0:34 
GeneralRe: windows programming Pin
nume28-May-05 1:20
nume28-May-05 1:20 
GeneralRe: windows programming Pin
Christian Graus28-May-05 0:56
protectorChristian Graus28-May-05 0:56 
GeneralSame prob, another prob Pin
Niklas Ulvinge27-May-05 23:55
Niklas Ulvinge27-May-05 23:55 
GeneralRe: Same prob, another prob Pin
Christian Graus28-May-05 0:57
protectorChristian Graus28-May-05 0:57 
GeneralRe: Same prob, another prob Pin
Niklas Ulvinge28-May-05 1:30
Niklas Ulvinge28-May-05 1:30 
GeneralC# serialized Pin
nume27-May-05 21:34
nume27-May-05 21:34 
GeneralRe: C# serialized Pin
Christian Graus28-May-05 0:59
protectorChristian Graus28-May-05 0:59 
GeneralRe: C# serialized Pin
nume28-May-05 1:28
nume28-May-05 1:28 
GeneralRe: C# serialized Pin
Christian Graus28-May-05 11:41
protectorChristian Graus28-May-05 11:41 
GeneralRe: C# serialized Pin
nume28-May-05 19:17
nume28-May-05 19:17 
GeneralRe: C# serialized Pin
Christian Graus28-May-05 23:57
protectorChristian Graus28-May-05 23:57 
GeneralRunning C# application from memory only Pin
Anonymous27-May-05 18:23
Anonymous27-May-05 18:23 
GeneralRe: Running C# application from memory only Pin
Niklas Ulvinge27-May-05 22:17
Niklas Ulvinge27-May-05 22:17 

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.