Click here to Skip to main content
15,886,362 members
Home / Discussions / C#
   

C#

 
AnswerRe: Sql or Xml ? Pin
Robert Rohde28-May-05 3:27
Robert Rohde28-May-05 3:27 
GeneralRe: Sql or Xml ? Pin
MoustafaS28-May-05 3:57
MoustafaS28-May-05 3:57 
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 
I create one appl. in C# and now i wanna insert string-text from textboxes to datagrid but it shows me one error. here is the code which i did write: The code is for InsertButton.I am not using storedProcedure.




string ins = "INSERT INTO tabela(Column1,Column2,Column3,Columns4)VALUES ("+
"'"+ this.txtColumn1.Text + "'" + ","+
"'" + this.txtColumn2.Text + "'" + "," +
"'" + this.txtColumn3.Text + "'" + "," +
"'" + this.txtColumns4.Text + ")";

SqlConnection stringuu = new SqlConnection( "workstation id=mypc;packet size=4096;integrated security=SSPI;data source=mydatabase;persist security info=False;initial catalog=");

SqlDataAdapter daa = new SqlDataAdapter();

DataSet dss = new DataSet();

daa.Fill(dss,"table");
SqlCommand inscomm= new SqlCommand(shtoje,stringuu);

stringuu.Open();
inscomm.ExecuteNonQuery();
stringuu.Close();




can somebody tell me where is mistake???


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 
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 

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.