Click here to Skip to main content
15,905,679 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: convert unicode to ascii Pin
Steven Campbell14-Apr-04 14:22
Steven Campbell14-Apr-04 14:22 
Generalascii to unicode Pin
Maverick14-Apr-04 18:43
Maverick14-Apr-04 18:43 
GeneralRe: ascii to unicode Pin
Steven Campbell15-Apr-04 2:44
Steven Campbell15-Apr-04 2:44 
GeneralRe: ascii to unicode Pin
Maverick18-Apr-04 20:25
Maverick18-Apr-04 20:25 
GeneralRe: convert unicode to ascii Pin
eranas14-Apr-04 20:26
eranas14-Apr-04 20:26 
GeneralRe: convert unicode to ascii Pin
Steven Campbell15-Apr-04 2:39
Steven Campbell15-Apr-04 2:39 
GeneralRe: convert unicode to ascii Pin
Mike Dimmick15-Apr-04 2:23
Mike Dimmick15-Apr-04 2:23 
GeneralFTP from the server side Pin
s67713-Apr-04 23:59
s67713-Apr-04 23:59 
GeneralRe: FTP from the server side Pin
Mike Dimmick14-Apr-04 5:03
Mike Dimmick14-Apr-04 5:03 
GeneralRe: FTP from the server side Pin
s67714-Apr-04 8:38
s67714-Apr-04 8:38 
GeneralRe: FTP from the server side Pin
Roman Rodov14-Apr-04 15:22
Roman Rodov14-Apr-04 15:22 
General"Controls created on one thread cannot be... & COM Pin
Maverick13-Apr-04 21:45
Maverick13-Apr-04 21:45 
GeneralRe: "Controls created on one thread cannot be... & COM Pin
SJ_Phoenix15-Apr-04 9:38
SJ_Phoenix15-Apr-04 9:38 
QuestionImpossible to inherit from HttpWebRequest? Pin
Steven Campbell13-Apr-04 8:27
Steven Campbell13-Apr-04 8:27 
AnswerRe: Impossible to inherit from HttpWebRequest? Pin
Mike Dimmick13-Apr-04 9:26
Mike Dimmick13-Apr-04 9:26 
GeneralRe: Impossible to inherit from HttpWebRequest? Pin
Steven Campbell13-Apr-04 9:59
Steven Campbell13-Apr-04 9:59 
GeneralRe: Impossible to inherit from HttpWebRequest? Pin
Abel Braaksma11-Nov-11 2:20
Abel Braaksma11-Nov-11 2:20 
GeneralProblem with modifying a databse after RDA Pull method Pin
JustChiLLin13-Apr-04 2:28
JustChiLLin13-Apr-04 2:28 
GeneralRe: Problem with modifying a databse after RDA Pull method Pin
Mike Dimmick13-Apr-04 4:12
Mike Dimmick13-Apr-04 4:12 
GeneralRe: Problem with modifying a databse after RDA Pull method Pin
JustChiLLin13-Apr-04 19:24
JustChiLLin13-Apr-04 19:24 
Thanks dude!

You are right, it was a problem with the EmployeeID being a unique index, and it being a primary key. So, i fixed it up and also did some stuff and came up with this:

Globals.conn = null;
Globals.conn = new SqlCeConnection ("Data Source = wta.sdf");
Globals.conn.Open();

//The connection is now open and now we're going to view what we've
//pulled out from the database
Globals.cmd = Globals.conn.CreateCommand();

//This would select the LastName segment of Northwind
Globals.cmd.CommandText = "SELECT * FROM Employees";

//This would then be executed and displayed on the MessageBox
Globals.rdr = Globals.cmd.ExecuteReader();
Globals.rdr.Read();
MessageBox.Show("ID Number: " + Globals.rdr.GetInt32(0).ToString() + " " + "Last Name:" + Globals.rdr.GetString(3));

Globals.cmd.CommandText = "UPDATE Employees SET LastName = 'Smith' WHERE EmployeeID = 1";

Globals.cmd.ExecuteNonQuery();

This worked perfectly, because i'm not actually changing the EmployeeID, i'm just updating the columns in reference to the primary id. Thanks dude!
GeneralRedirection of Debug/Trace Messages Pin
JM_FL12-Apr-04 22:30
JM_FL12-Apr-04 22:30 
GeneralRe: Redirection of Debug/Trace Messages Pin
Mike Dimmick13-Apr-04 4:16
Mike Dimmick13-Apr-04 4:16 
GeneralRe: Redirection of Debug/Trace Messages Pin
Steven Campbell13-Apr-04 10:11
Steven Campbell13-Apr-04 10:11 
GeneralRe: Redirection of Debug/Trace Messages Pin
JM_FL14-Apr-04 2:31
JM_FL14-Apr-04 2:31 
GeneraliButton and .NET Pin
poopa10-Apr-04 8:21
poopa10-Apr-04 8:21 

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.