Click here to Skip to main content
15,898,946 members
Home / Discussions / C#
   

C#

 
GeneralProbability /statistical library Pin
machocr21-Jul-05 6:24
machocr21-Jul-05 6:24 
GeneralRe: Probability /statistical library Pin
Kevin McFarlane21-Jul-05 7:51
Kevin McFarlane21-Jul-05 7:51 
GeneralRe: Probability /statistical library Pin
machocr21-Jul-05 11:55
machocr21-Jul-05 11:55 
QuestionHow to get the currently focused mail in outlook using c#? Pin
Inbam21-Jul-05 6:16
Inbam21-Jul-05 6:16 
Generalcreate virtual ftp folder using shell extension under desktop(like My Network Places) Pin
Asif Rehman21-Jul-05 5:09
Asif Rehman21-Jul-05 5:09 
GeneralBlobs are driving me insane!!!!! Pin
kornstyle21-Jul-05 4:59
kornstyle21-Jul-05 4:59 
GeneralRe: Blobs are driving me insane!!!!! Pin
Judah Gabriel Himango21-Jul-05 8:11
sponsorJudah Gabriel Himango21-Jul-05 8:11 
GeneralRe: Blobs are driving me insane!!!!! Pin
Rob Graham21-Jul-05 9:19
Rob Graham21-Jul-05 9:19 
I'm not entirely clear on what you are trying to do here. If all you are trying to do is copy the content of an existing field [photo] to another field [photo2] in the same tabel, then your update statement has no need for the parameter you are adding (and is probably confulsed by it). You don't need to read the data to copy it, it suffices to just set the value of one field to another in the update statement. If you want to write the content of the memory stream, then change the sql to
"UPDATE Employees SET Photo2 = ? WHERE EmployeeID = " + IDTxtBx.Text;

then the parameter you added will substitute for the ? placeholder and should work just fine

It is generally not a good idea to name parameters the same as fields in the table you are addressing, aside from the confusion it causes in the code, it may also cause errors...

Oledb doesn't understand named parameters like SQL server does, it expects placeholders, then matches them up by the order the paramters are added to the collection...

Absolute faith corrupts as absolutely as absolute power
Eric Hoffer

The opposite of the religious fanatic is not the fanatical atheist but the gentle cynic who cares not whether there is a god or not.
Eric Hoffer

GeneralRe: Blobs are driving me insane!!!!! Pin
kornstyle21-Jul-05 9:45
kornstyle21-Jul-05 9:45 
GeneralDead Keys Pin
Loveday7821-Jul-05 4:25
Loveday7821-Jul-05 4:25 
GeneralRe: Dead Keys Pin
LongRange.Shooter21-Jul-05 4:39
LongRange.Shooter21-Jul-05 4:39 
GeneralRe: Dead Keys Pin
Loveday7821-Jul-05 5:00
Loveday7821-Jul-05 5:00 
GeneralRe: Dead Keys Pin
Daniel Turini21-Jul-05 4:58
Daniel Turini21-Jul-05 4:58 
GeneralRe: Dead Keys Pin
Loveday7821-Jul-05 5:04
Loveday7821-Jul-05 5:04 
GeneralSearching for drag and drop item in listbox Pin
PHDENG8121-Jul-05 4:23
PHDENG8121-Jul-05 4:23 
GeneralRe: Searching for drag and drop item in listbox Pin
LongRange.Shooter21-Jul-05 4:37
LongRange.Shooter21-Jul-05 4:37 
GeneralRe: Searching for drag and drop item in listbox Pin
PHDENG8121-Jul-05 5:28
PHDENG8121-Jul-05 5:28 
GeneralRe: Searching for drag and drop item in listbox Pin
PHDENG8121-Jul-05 5:38
PHDENG8121-Jul-05 5:38 
QuestionHow to verify user input during application installation? Pin
sparks_lu21-Jul-05 4:14
sparks_lu21-Jul-05 4:14 
AnswerRe: How to verify user input during application installation? Pin
Alomgir Miah21-Jul-05 6:29
Alomgir Miah21-Jul-05 6:29 
GeneralIF / WHILE questions Pin
WetRivrRat21-Jul-05 3:58
WetRivrRat21-Jul-05 3:58 
GeneralRe: IF / WHILE questions Pin
LongRange.Shooter21-Jul-05 4:28
LongRange.Shooter21-Jul-05 4:28 
GeneralRe: IF / WHILE questions Pin
WetRivrRat21-Jul-05 4:36
WetRivrRat21-Jul-05 4:36 
GeneralRe: IF / WHILE questions Pin
Dave Kreskowiak21-Jul-05 4:44
mveDave Kreskowiak21-Jul-05 4:44 
GeneralRe: IF / WHILE questions Pin
WetRivrRat21-Jul-05 4:49
WetRivrRat21-Jul-05 4:49 

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.