Click here to Skip to main content
15,914,419 members
Home / Discussions / C#
   

C#

 
GeneralRe: Using code behind to retreive ms access data Pin
markymark825-Jul-07 9:46
markymark825-Jul-07 9:46 
GeneralRe: Using code behind to retreive ms access data Pin
Guffa5-Jul-07 11:09
Guffa5-Jul-07 11:09 
GeneralRe: Using code behind to retreive ms access data Pin
markymark825-Jul-07 11:14
markymark825-Jul-07 11:14 
Questionsend/recieve email + ping to pc in netwerk using a pocket pc Pin
faladrim5-Jul-07 4:21
faladrim5-Jul-07 4:21 
QuestionRetrieve Installation Path Pin
terrible835-Jul-07 4:09
terrible835-Jul-07 4:09 
AnswerRe: Retrieve Installation Path Pin
originSH5-Jul-07 4:13
originSH5-Jul-07 4:13 
AnswerRe: Retrieve Installation Path Pin
led mike5-Jul-07 4:39
led mike5-Jul-07 4:39 
Questionhow to insert data Pin
csanda15-Jul-07 3:59
csanda15-Jul-07 3:59 
Hi
Im doing an application in Visual C# 2005, my application can read data from my database but cant save into the database. Heres the code. What am I missing....Pliz Help!!!!

private void btnSave_Click(object sender, EventArgs e)
{
string strConnection = "Provider=Microsoft.Jet.OLEDB.4.0;"+"Data Source=YAC.mdb";
OleDbConnection conn = new OleDbConnection(strConnection);
conn.Open();
string strCommand = "INSERT INTO ClientProfile(Name,Surname,Gender,IdNumber) Values ('" + txtName.Text + "','" + txtSurname.Text + "','" + cbxGender.Text + "','" + txtIdNumber.Text + "')";

OleDbDataAdapter adapter = new OleDbDataAdapter();
adapter.InsertCommand = new OleDbCommand(strCommand, conn);
(this.yACDataSet.ClientProfile);


int t1 = adapter.InsertCommand.ExecuteNonQuery();
conn.Close();

if (t1 > 0)
{
MessageBox.Show("added successfully!");

}

csanda
AnswerRe: how to insert data Pin
led mike5-Jul-07 4:42
led mike5-Jul-07 4:42 
QuestionRegistry Problems NullException Pin
StevenWalsh5-Jul-07 3:47
StevenWalsh5-Jul-07 3:47 
AnswerRe: Registry Problems NullException Pin
Christian Graus5-Jul-07 3:55
protectorChristian Graus5-Jul-07 3:55 
AnswerRe: Registry Problems NullException Pin
NassosReyzidis5-Jul-07 3:56
NassosReyzidis5-Jul-07 3:56 
GeneralRe: Registry Problems NullException Pin
StevenWalsh5-Jul-07 4:09
StevenWalsh5-Jul-07 4:09 
GeneralRe: Registry Problems NullException Pin
Christian Graus5-Jul-07 4:22
protectorChristian Graus5-Jul-07 4:22 
GeneralRe: Registry Problems NullException Pin
StevenWalsh5-Jul-07 4:42
StevenWalsh5-Jul-07 4:42 
Questionuser id,password.etcc.. Pin
myat_035-Jul-07 3:05
myat_035-Jul-07 3:05 
JokeRe: user id,password.etcc.. Pin
originSH5-Jul-07 3:10
originSH5-Jul-07 3:10 
GeneralRe: user id,password.etcc.. Pin
myat_035-Jul-07 3:25
myat_035-Jul-07 3:25 
GeneralRe: user id,password.etcc.. Pin
originSH5-Jul-07 3:36
originSH5-Jul-07 3:36 
GeneralRe: user id,password.etcc.. Pin
Christian Graus5-Jul-07 3:56
protectorChristian Graus5-Jul-07 3:56 
AnswerRe: user id,password.etcc.. Pin
Christian Graus5-Jul-07 3:19
protectorChristian Graus5-Jul-07 3:19 
AnswerRe: user id,password.etcc.. Pin
Paul Conrad5-Jul-07 6:02
professionalPaul Conrad5-Jul-07 6:02 
QuestionChange column title in DataGrid Pin
Muhammad Gouda5-Jul-07 2:20
Muhammad Gouda5-Jul-07 2:20 
AnswerRe: Change column title in DataGrid Pin
kubben5-Jul-07 2:28
kubben5-Jul-07 2:28 
GeneralRe: Change column title in DataGrid Pin
Muhammad Gouda9-Jul-07 21:21
Muhammad Gouda9-Jul-07 21: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.