Click here to Skip to main content
15,897,273 members
Home / Discussions / C#
   

C#

 
Questionserial printer on Web? Pin
rbarzallo24-Sep-04 15:57
rbarzallo24-Sep-04 15:57 
AnswerRe: serial printer on Web? Pin
Alex Korchemniy25-Sep-04 12:14
Alex Korchemniy25-Sep-04 12:14 
GeneralRe: serial printer on Web? Pin
rbarzallo26-Sep-04 6:38
rbarzallo26-Sep-04 6:38 
GeneralDeleted row information cannot be accessed through the row Pin
zuhx24-Sep-04 14:49
zuhx24-Sep-04 14:49 
GeneralVirtual ListView exception when leaving and entering focus Pin
tajbender24-Sep-04 13:14
tajbender24-Sep-04 13:14 
GeneralGUID Pin
yyf24-Sep-04 11:37
yyf24-Sep-04 11:37 
GeneralRe: GUID Pin
Charlie Williams24-Sep-04 12:23
Charlie Williams24-Sep-04 12:23 
GeneralA C# SQL question Pin
cemlouis24-Sep-04 10:12
cemlouis24-Sep-04 10:12 
Hi,

When I want to specify an SQL query I am using the below code:

mySqlCommand.CommandText = "SELECT name, surname FROM people WHERE name = 'James' AND surname = 'Brown'";

But how can I do this if I don't want to write down the surname(use a variable instead of that)? I used below code but couldn't get a result:

string buffer_surname = textBox1.Text;
mySqlCommand.CommandText = "SELECT name, surname FROM people WHERE name = 'James' AND surname = '@buffer_surname'";

???

Thank you,
Cem Louis

GeneralRe: A C# SQL question Pin
tdciDoug24-Sep-04 10:29
tdciDoug24-Sep-04 10:29 
GeneralRe: A C# SQL question Pin
cemlouis24-Sep-04 10:48
cemlouis24-Sep-04 10:48 
GeneralRe: A C# SQL question Pin
tdciDoug24-Sep-04 11:05
tdciDoug24-Sep-04 11:05 
GeneralRe: A C# SQL question Pin
cemlouis25-Sep-04 12:56
cemlouis25-Sep-04 12:56 
Generalarray issue Pin
Paul Swet24-Sep-04 8:38
Paul Swet24-Sep-04 8:38 
GeneralRe: array issue Pin
tdciDoug24-Sep-04 10:27
tdciDoug24-Sep-04 10:27 
GeneralWeird Listbox Problem Pin
Jon G24-Sep-04 8:38
Jon G24-Sep-04 8:38 
GeneralScanning photos Pin
bobbiek24-Sep-04 8:15
bobbiek24-Sep-04 8:15 
Questionwhat is the purpose of a interface(not talking about guis) Pin
FocusedWolf24-Sep-04 7:53
FocusedWolf24-Sep-04 7:53 
AnswerRe: what is the purpose of a interface(not talking about guis) Pin
tajbender24-Sep-04 13:01
tajbender24-Sep-04 13:01 
AnswerRe: what is the purpose of a interface(not talking about guis) Pin
Marc Clifton24-Sep-04 14:21
mvaMarc Clifton24-Sep-04 14:21 
GeneralRe: what is the purpose of a interface(not talking about guis) Pin
FocusedWolf25-Sep-04 5:06
FocusedWolf25-Sep-04 5:06 
GeneralRe: what is the purpose of a interface(not talking about guis) Pin
Marc Clifton25-Sep-04 9:23
mvaMarc Clifton25-Sep-04 9:23 
Generalrich text bullets are not displayed in Crystal report. .net 2003 Pin
sundar_raj24-Sep-04 6:53
sundar_raj24-Sep-04 6:53 
GeneralC# Convolution Function Pin
ee9903524-Sep-04 6:27
ee9903524-Sep-04 6:27 
GeneralRe: C# Convolution Function Pin
yoaz26-Sep-04 3:59
yoaz26-Sep-04 3:59 
QuestionHow to read image files with extensions which are not predefined in C# Pin
Kiran Satish24-Sep-04 6:14
Kiran Satish24-Sep-04 6:14 

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.