Click here to Skip to main content
15,906,624 members
Home / Discussions / C#
   

C#

 
GeneralRe: FTP in C# Pin
RizwanSharp19-Jul-06 11:25
RizwanSharp19-Jul-06 11:25 
QuestionNHibernate Pin
Mobocracy+)19-Jul-06 3:02
Mobocracy+)19-Jul-06 3:02 
AnswerRe: NHibernate Pin
Robert Rohde19-Jul-06 3:19
Robert Rohde19-Jul-06 3:19 
QuestionC# and create SQL table and store procedures Pin
Saamir19-Jul-06 2:56
Saamir19-Jul-06 2:56 
AnswerRe: C# and create SQL table and store procedures Pin
Not Active19-Jul-06 3:06
mentorNot Active19-Jul-06 3:06 
GeneralRe: C# and create SQL table and store procedures Pin
Saamir19-Jul-06 3:26
Saamir19-Jul-06 3:26 
GeneralRe: C# and create SQL table and store procedures Pin
Gavin Roberts19-Jul-06 5:08
Gavin Roberts19-Jul-06 5:08 
Questionupdate statements using classes [modified] Pin
Mamphekgo19-Jul-06 2:54
Mamphekgo19-Jul-06 2:54 
Hi.i am try to write update statement using classes but it always gives me an error and use this on my form.i did something like this.

public class Update
{
string empname = "";
public Update()
{
//
// TODO: Add constructor logic here
//
}
public void updateEmployee(string empname1)
{

empname = empname1;
SqlConnection conn = new SqlConnection();
conn.ConnectionString = "integrated security=SSPI;initial catalog=Employee;server = za211149;persist security info=False";

conn.Open();
try
{
SqlCommand UpdateEmp = new SqlCommand();
UpdateEmp.Connection = conn;
UpdateEmp.CommandText = "UPDATE jakes";
UpdateEmp.Parameters.Add(new SqlParameter("@empname",System.Data.SqlDbType.VarChar,50,empname));
UpdateEmp.Parameters["@empname"].Value = this.empname.ToString();


if(UpdateEmp.ExecuteNonQuery()==1)
{
MessageBox.Show("record updated");
}
else
{
MessageBox.Show("record not updated");
}
}
catch
{
MessageBox.Show("o a gafa");
}
finally
{
conn.Close();
}
}

-- modified at 9:03 Wednesday 19th July, 2006
AnswerRe: update statements using classes Pin
Not Active19-Jul-06 3:09
mentorNot Active19-Jul-06 3:09 
AnswerRe: update statements using classes Pin
Mairaaj Khan19-Jul-06 3:10
professionalMairaaj Khan19-Jul-06 3:10 
Questionflicking effect Pin
Sabry190519-Jul-06 0:54
Sabry190519-Jul-06 0:54 
AnswerRe: flicking effect Pin
alexey N19-Jul-06 1:01
alexey N19-Jul-06 1:01 
GeneralRe: flicking effect Pin
Sabry190519-Jul-06 2:21
Sabry190519-Jul-06 2:21 
GeneralRe: flicking effect Pin
Robert Rohde19-Jul-06 2:23
Robert Rohde19-Jul-06 2:23 
AnswerHow much ram do you have? Pin
Ennis Ray Lynch, Jr.19-Jul-06 2:49
Ennis Ray Lynch, Jr.19-Jul-06 2:49 
GeneralRe: How much ram do you have? Pin
Sabry190519-Jul-06 3:20
Sabry190519-Jul-06 3:20 
GeneralRe: How much ram do you have? Pin
AB777119-Jul-06 3:45
AB777119-Jul-06 3:45 
GeneralRe: How much ram do you have? Pin
Sabry190519-Jul-06 6:25
Sabry190519-Jul-06 6:25 
Questionarraylist /hashtable Pin
lavate malllik19-Jul-06 0:43
lavate malllik19-Jul-06 0:43 
AnswerRe: arraylist /hashtable Pin
S020035619-Jul-06 1:04
S020035619-Jul-06 1:04 
Questionobject declaration and Initialization in CodeDom [modified] Pin
mansimani19-Jul-06 0:40
mansimani19-Jul-06 0:40 
QuestionResuming a sleeping thread Pin
PeteConc19-Jul-06 0:25
PeteConc19-Jul-06 0:25 
AnswerRe: Resuming a sleeping thread Pin
alexey N19-Jul-06 0:30
alexey N19-Jul-06 0:30 
GeneralRe: Resuming a sleeping thread Pin
PeteConc19-Jul-06 0:36
PeteConc19-Jul-06 0:36 
GeneralRe: Resuming a sleeping thread Pin
stancrm19-Jul-06 0:42
stancrm19-Jul-06 0:42 

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.