Click here to Skip to main content
15,501,002 members
Home / Discussions / C#
   

C#

 
GeneralDataGrid DoubleClick Event Pin
Afief28-May-05 3:26
MemberAfief28-May-05 3:26 
GeneralRe: DataGrid DoubleClick Event Pin
hasansheik28-May-05 3:31
Memberhasansheik28-May-05 3:31 
GeneralRe: DataGrid DoubleClick Event Pin
Afief28-May-05 3:58
MemberAfief28-May-05 3:58 
QuestionHow can write sync sensittivity to live video Pin
Member 110343128-May-05 2:05
MemberMember 110343128-May-05 2:05 
GeneralDial Up program Pin
ksanju100028-May-05 1:50
Memberksanju100028-May-05 1:50 
Generalhelp me about insert Pin
albCode28-May-05 1:35
MemberalbCode28-May-05 1:35 
GeneralRe: help me about insert Pin
Christian Graus28-May-05 1:54
mveChristian Graus28-May-05 1:54 
GeneralRe: help me about insert Pin
cjengler28-May-05 2:44
Membercjengler28-May-05 2: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
nume28-May-05 0:58
Membernume28-May-05 0:58 
GeneralRe: windows programming Pin
MoustafaS28-May-05 1:20
MemberMoustafaS28-May-05 1:20 
GeneralRe: windows programming Pin
nume28-May-05 1:32
Membernume28-May-05 1:32 
GeneralRe: windows programming Pin
MoustafaS28-May-05 1:34
MemberMoustafaS28-May-05 1:34 
GeneralRe: windows programming Pin
nume28-May-05 2:20
Membernume28-May-05 2:20 
GeneralRe: windows programming Pin
Christian Graus28-May-05 1:56
mveChristian Graus28-May-05 1:56 
GeneralSame prob, another prob Pin
Niklas Ulvinge28-May-05 0:55
MemberNiklas Ulvinge28-May-05 0:55 
GeneralRe: Same prob, another prob Pin
Christian Graus28-May-05 1:57
mveChristian Graus28-May-05 1:57 
GeneralRe: Same prob, another prob Pin
Niklas Ulvinge28-May-05 2:30
MemberNiklas Ulvinge28-May-05 2:30 
GeneralC# serialized Pin
nume27-May-05 22:34
Membernume27-May-05 22:34 
GeneralRe: C# serialized Pin
Christian Graus28-May-05 1:59
mveChristian Graus28-May-05 1:59 
GeneralRe: C# serialized Pin
nume28-May-05 2:28
Membernume28-May-05 2:28 
GeneralRe: C# serialized Pin
Christian Graus28-May-05 12:41
mveChristian Graus28-May-05 12:41 
GeneralRe: C# serialized Pin
nume28-May-05 20:17
Membernume28-May-05 20:17 
GeneralRe: C# serialized Pin
Christian Graus29-May-05 0:57
mveChristian Graus29-May-05 0:57 
GeneralRunning C# application from memory only Pin
Anonymous27-May-05 19:23
MemberAnonymous27-May-05 19:23 
GeneralRe: Running C# application from memory only Pin
Niklas Ulvinge27-May-05 23:17
MemberNiklas Ulvinge27-May-05 23: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.