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

C#

 
GeneralRe: checkBox & ListView Pin
laziale30-Jun-08 1:19
laziale30-Jun-08 1:19 
QuestionDetermine incorrect String.Format format Pin
Stevo Z29-Jun-08 23:59
Stevo Z29-Jun-08 23:59 
AnswerRe: Determine incorrect String.Format format Pin
PIEBALDconsult30-Jun-08 5:10
mvePIEBALDconsult30-Jun-08 5:10 
QuestionSQL connection execute what? Pin
laziale29-Jun-08 23:13
laziale29-Jun-08 23:13 
AnswerRe: SQL connection execute what? Pin
Christian Graus29-Jun-08 23:22
protectorChristian Graus29-Jun-08 23:22 
GeneralRe: SQL connection execute what? Pin
laziale29-Jun-08 23:28
laziale29-Jun-08 23:28 
GeneralRe: SQL connection execute what? Pin
Christian Graus29-Jun-08 23:36
protectorChristian Graus29-Jun-08 23:36 
AnswerRe: SQL connection execute what? Pin
Mbah Dhaim29-Jun-08 23:27
Mbah Dhaim29-Jun-08 23:27 
string updateQuery = "UPDATE Credentials SET Username = '" + txtUser.Text + "', Password = '" + txtPass.Text + "', Address = '" + txtAddress.Text + "' WHERE Username='" + user + "', Password='" + pass + "', Address='" + address + "'";

---> i think this is the first error, change to this :
string updateQuery = "UPDATE Credentials SET Username = '" + txtUser.Text + "', Password = '" + txtPass.Text + "', Address = '" + txtAddress.Text + "' WHERE Username='" + user + "' AND Password='" + pass + "' AND Address='" + address + "'";


SqlCommand updateCom = con.CreateCommand();//OK
SqlDataAdapter adapter2 = new SqlDataAdapter();// ** i don't know why u using this adapter? for what purpose
updateCom.CommandText = updateQuery;//OK
adapter2.SelectCommand = updateCom;//see previous **
DataSet updateDataSet = new DataSet();//see previous **
adapter2.Fill(updateDataSet, dataTableName);//see previous **
// add this
con.Open();
comm.ExecuteNonQuery();
con.Close();


D'Oh! | :doh:

dhaim
program is hobby that make some money as side effect Smile | :)

GeneralRe: SQL connection execute what? Pin
Colin Angus Mackay29-Jun-08 23:31
Colin Angus Mackay29-Jun-08 23:31 
JokeRe: SQL connection execute what? Pin
Mbah Dhaim29-Jun-08 23:37
Mbah Dhaim29-Jun-08 23:37 
GeneralRe: SQL connection execute what? Pin
laziale29-Jun-08 23:34
laziale29-Jun-08 23:34 
GeneralRe: SQL connection execute what? Pin
Christian Graus29-Jun-08 23:39
protectorChristian Graus29-Jun-08 23:39 
AnswerRe: SQL connection execute what? Pin
Colin Angus Mackay29-Jun-08 23:30
Colin Angus Mackay29-Jun-08 23:30 
GeneralRe: SQL connection execute what? Pin
laziale29-Jun-08 23:36
laziale29-Jun-08 23:36 
GeneralRe: SQL connection execute what? Pin
Christian Graus29-Jun-08 23:38
protectorChristian Graus29-Jun-08 23:38 
GeneralRe: SQL connection execute what? Pin
laziale29-Jun-08 23:40
laziale29-Jun-08 23:40 
GeneralRe: SQL connection execute what? Pin
laziale30-Jun-08 0:04
laziale30-Jun-08 0:04 
Questionhow to use calculous to programing three dimensional graphics Pin
chenli051329-Jun-08 23:00
chenli051329-Jun-08 23:00 
AnswerRe: how to use calculous to programing three dimensional graphics Pin
Christian Graus29-Jun-08 23:04
protectorChristian Graus29-Jun-08 23:04 
AnswerRe: how to use calculous to programing three dimensional graphics Pin
leppie29-Jun-08 23:46
leppie29-Jun-08 23:46 
AnswerRe: how to use calculous to programing three dimensional graphics Pin
Alan Balkany30-Jun-08 4:57
Alan Balkany30-Jun-08 4:57 
QuestionNumericUpDown SelectedText property work-around Pin
jozsurf29-Jun-08 22:51
jozsurf29-Jun-08 22:51 
AnswerRe: NumericUpDown SelectedText property work-around Pin
Kjetil Svendsen30-Jun-08 5:27
Kjetil Svendsen30-Jun-08 5:27 
GeneralRe: NumericUpDown SelectedText property work-around Pin
jozsurf30-Jun-08 15:00
jozsurf30-Jun-08 15:00 
QuestionPropertyGrid + SelectedObjects Pin
KBou29-Jun-08 22:47
KBou29-Jun-08 22:47 

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.