Click here to Skip to main content
15,887,596 members
Home / Discussions / C#
   

C#

 
GeneralRe: error : The left-hand side of an assignment must be a variable, property or indexer Pin
Landie11029-Sep-07 10:13
Landie11029-Sep-07 10:13 
GeneralRe: error : The left-hand side of an assignment must be a variable, property or indexer Pin
Landie11029-Sep-07 10:20
Landie11029-Sep-07 10:20 
AnswerRe: error : The left-hand side of an assignment must be a variable, property or indexer Pin
Guffa29-Sep-07 10:42
Guffa29-Sep-07 10:42 
GeneralRe: error : The left-hand side of an assignment must be a variable, property or indexer Pin
Colin Angus Mackay29-Sep-07 10:49
Colin Angus Mackay29-Sep-07 10:49 
GeneralRe: error : The left-hand side of an assignment must be a variable, property or indexer Pin
Christian Graus29-Sep-07 13:21
protectorChristian Graus29-Sep-07 13:21 
GeneralRe: error : The left-hand side of an assignment must be a variable, property or indexer Pin
Colin Angus Mackay29-Sep-07 13:26
Colin Angus Mackay29-Sep-07 13:26 
GeneralRe: error : The left-hand side of an assignment must be a variable, property or indexer Pin
Christian Graus29-Sep-07 13:54
protectorChristian Graus29-Sep-07 13:54 
GeneralRe: error : The left-hand side of an assignment must be a variable, property or indexer Pin
Colin Angus Mackay29-Sep-07 10:47
Colin Angus Mackay29-Sep-07 10:47 
Are all the variables strings?

Also, it would be better if you didn't inject values into the SQL command as it can lead to SQL Injection Attacks.

sqlSQL = "UPDATE [IBAX].[dbo].[klanten] "+
         "SET [klantOndNr] = @klantOndNr, "+
         "[klantNaam] = @klantNaam"; // etc.
 
mySqlCommand.CommandText = strSQL;
mySqlCommand.Parameters.AddWithValue("@klantOndNr", klantOndNr);
mySqlCommand.Parameters.AddWithValue("@klantNaam", klantNaam); // etc.

If you restructure as above, you might find your error easier to find (if it doesn't fix it) AND the security of your application improved.


Upcoming FREE developer events:
* Glasgow: db4o: An Embeddable Database Engine for Object-Oriented Environments, Mock Objects, SQL Server CLR Integration, Reporting Services ...

My website

GeneralRe: error : The left-hand side of an assignment must be a variable, property or indexer Pin
Landie1101-Oct-07 2:18
Landie1101-Oct-07 2:18 
QuestionHelp with Prining Pin
MumbleB29-Sep-07 9:39
MumbleB29-Sep-07 9:39 
AnswerRe: Help with Prining Pin
Lutosław29-Sep-07 10:51
Lutosław29-Sep-07 10:51 
GeneralRe: Help with Prining Pin
MumbleB29-Sep-07 11:44
MumbleB29-Sep-07 11:44 
GeneralRe: Help with Prining Pin
Lutosław29-Sep-07 12:21
Lutosław29-Sep-07 12:21 
GeneralRe: Help with Prining Pin
Paul Conrad29-Sep-07 13:09
professionalPaul Conrad29-Sep-07 13:09 
GeneralRe: Help with Prining Pin
MumbleB30-Sep-07 3:41
MumbleB30-Sep-07 3:41 
GeneralRe: Help with Prining Pin
Lutosław30-Sep-07 5:33
Lutosław30-Sep-07 5:33 
GeneralRe: Help with Prining Pin
MumbleB30-Sep-07 10:57
MumbleB30-Sep-07 10:57 
Questionbarcode Pin
k36madman29-Sep-07 8:12
k36madman29-Sep-07 8:12 
AnswerRe: barcode Pin
martin_hughes29-Sep-07 10:15
martin_hughes29-Sep-07 10:15 
GeneralRe: barcode Pin
k36madman29-Sep-07 12:02
k36madman29-Sep-07 12:02 
GeneralRe: barcode Pin
martin_hughes29-Sep-07 12:31
martin_hughes29-Sep-07 12:31 
GeneralRe: barcode Pin
k36madman29-Sep-07 14:39
k36madman29-Sep-07 14:39 
GeneralRe: barcode Pin
GuyThiebaut30-Sep-07 8:25
professionalGuyThiebaut30-Sep-07 8:25 
GeneralRe: barcode Pin
k36madman30-Sep-07 10:43
k36madman30-Sep-07 10:43 
QuestionRadio Buttons Pin
picasso229-Sep-07 7:52
picasso229-Sep-07 7:52 

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.