Click here to Skip to main content
15,889,216 members
Home / Discussions / C#
   

C#

 
AnswerRe: Help with treeview and icons Pin
Nader Elshehabi22-Aug-06 11:56
Nader Elshehabi22-Aug-06 11:56 
Questionwant example code , select , insert .update ,delete for SQLserver on windows form with c# 2005 Pin
tanapop22-Aug-06 6:48
tanapop22-Aug-06 6:48 
AnswerRe: want example code , select , insert .update ,delete for SQLserver on windows form with c# 2005 Pin
Ed.Poore22-Aug-06 7:38
Ed.Poore22-Aug-06 7:38 
QuestionOut of memory exception Pin
engsrini22-Aug-06 6:47
engsrini22-Aug-06 6:47 
AnswerRe: Out of memory exception Pin
Dustin Metzgar22-Aug-06 7:00
Dustin Metzgar22-Aug-06 7:00 
Questionhelp me Please! . check code Error point . Pin
tanapop22-Aug-06 6:38
tanapop22-Aug-06 6:38 
AnswerRe: help me Please! . check code Error point . Pin
User 665822-Aug-06 7:10
User 665822-Aug-06 7:10 
Questionplease check the code , i don't on where Error :confused: Pin
tanapop22-Aug-06 6:04
tanapop22-Aug-06 6:04 
private void btnSave_Click(object sender, EventArgs e)
{
string Strconn = "Server = local; User ID = sa; Password = computer; Initial Catalog = FingerData";

string Strcomm = "INSERT INTO Employee VALUES(";
Strcomm += "'"+txtFinger.Text+",'";
Strcomm += "'"+txtPrename.Text+"','";
Strcomm += "'"+txtFname.Text+"','";
Strcomm += "'"+txtLname.Text + "','";
Strcomm += "'"+txtNname.Text + "','";
Strcomm += "'"+picEmp.Image + "',";
Strcomm += "'"+txtAge.Text + ",";
Strcomm += "'" + "CONVERT(DATETIME,'" + txtBirth.Text + "', 102),'";
Strcomm += "'"+txtAddress.Text + "','";
Strcomm += "'"+txtDepartment.Text + "',";
Strcomm += "'"+txtSalary.Text + ",'";
Strcomm += "'"+txtHtel.Text+ "','";
Strcomm += "'"+txtMtel.Text + "','";
Strcomm += "'"+txtEmail.Text+"','";
Strcomm += "'"+txtPassword.Text + "')";

SqlConnection SQLconn = new SqlConnection(Strconn);
SqlCommand SQLcomm = new SqlCommand(Strconn, SQLconn);
try
{
SQLconn.ConnectionString = Strcomm;

if (SQLconn.State == ConnectionState.Open)
{
SQLconn.Close();
}
SQLconn.Open();
SQLcomm.CommandType = CommandType.Text;
SQLcomm.CommandText = Strcomm;

SQLcomm.Connection = SQLconn;
SQLcomm.ExecuteNonQuery();
}
catch (Exception Error)
{
MessageBox.Show("ไม่สามารถเพิ่มข้อมูลได้เนื่องจาก !!!!! " + Error.Message, "ข้อผิดพลาด", MessageBoxButtons.OK);
}



}

lmjojopjkopkop

AnswerRe: please check the code , i don't on where Error :confused: Pin
Guffa22-Aug-06 6:15
Guffa22-Aug-06 6:15 
GeneralRe: please check the code , i don't on where Error :confused: Pin
Ed.Poore22-Aug-06 7:15
Ed.Poore22-Aug-06 7:15 
GeneralRe: Standard questions Pin
Guffa22-Aug-06 8:03
Guffa22-Aug-06 8:03 
GeneralRe: Standard questions Pin
Ed.Poore22-Aug-06 8:34
Ed.Poore22-Aug-06 8:34 
AnswerRe: please check the code , i don't on where Error :confused: Pin
Christian Graus22-Aug-06 11:28
protectorChristian Graus22-Aug-06 11:28 
QuestionBinding Navigator problem Pin
emran83422-Aug-06 5:40
emran83422-Aug-06 5:40 
AnswerRe: Binding Navigator problem Pin
Ed.Poore22-Aug-06 7:17
Ed.Poore22-Aug-06 7:17 
GeneralRe: Binding Navigator problem Pin
emran83422-Aug-06 14:36
emran83422-Aug-06 14:36 
GeneralRe: Binding Navigator problem Pin
Ed.Poore22-Aug-06 18:33
Ed.Poore22-Aug-06 18:33 
QuestionDifferent security issues Pin
PKKSuomi22-Aug-06 5:32
PKKSuomi22-Aug-06 5:32 
AnswerRe: Different security issues Pin
Ed.Poore22-Aug-06 7:22
Ed.Poore22-Aug-06 7:22 
GeneralRe: Different security issues Pin
PKKSuomi28-Aug-06 1:12
PKKSuomi28-Aug-06 1:12 
QuestionCABAC/CAVLC Algorithm Pin
danasegaranea22-Aug-06 5:01
danasegaranea22-Aug-06 5:01 
QuestionConversion from Enterprise Library 1.1 to 2.0 Pin
V V Gopi22-Aug-06 4:56
V V Gopi22-Aug-06 4:56 
AnswerRe: Conversion from Enterprise Library 1.1 to 2.0 Pin
Dustin Metzgar22-Aug-06 5:17
Dustin Metzgar22-Aug-06 5:17 
QuestionNewbie (Http-Tunneling) in C#: Help PLZZZZ!! (post 2 prev post modify didnt succeed) [modified] Pin
gvanto22-Aug-06 4:49
gvanto22-Aug-06 4:49 
GeneralRe: Newbie (Http-Tunneling) in C#: Help PLZZZZ!! (post 2 prev post modify didnt succeed) Pin
Guffa22-Aug-06 5:43
Guffa22-Aug-06 5:43 

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.