Click here to Skip to main content
15,903,175 members
Home / Discussions / C#
   

C#

 
GeneralRe: ObjectDisposedException Pin
George_George12-May-08 2:26
George_George12-May-08 2:26 
AnswerRe: ObjectDisposedException Pin
tgrt12-May-08 3:14
tgrt12-May-08 3:14 
GeneralRe: ObjectDisposedException Pin
George_George12-May-08 18:45
George_George12-May-08 18:45 
QuestionMultiple schema Pin
PaulaM12-May-08 1:57
PaulaM12-May-08 1:57 
QuestionHow do use windows media player with multi threads?????????????????????????????????? Pin
Member 175177312-May-08 1:40
Member 175177312-May-08 1:40 
AnswerRe: How do use windows media player with multi threads?????????????????????????????????? Pin
N a v a n e e t h12-May-08 2:17
N a v a n e e t h12-May-08 2:17 
QuestionImplement Depth First Search Pin
Syed Ali Raza12-May-08 1:36
Syed Ali Raza12-May-08 1:36 
Questionsolve this error Pin
salil_k_singh12-May-08 1:20
salil_k_singh12-May-08 1:20 
sir i want to insert data in two tables using transaction. thee is error occurs at run time . i am giving u a my code please correct it as soon as possible:

con = new OleDbConnection("provider=Microsoft.Jet.Oledb.4.0;data source=E:\\db1.mdb");
com1 = new OleDbCommand("insert into info(user_id,password,name,role,email,contact,address,designation,ques,ans) values('" + textBox1.Text + "','" + textBox2.Text + "','" + textBox4.Text + "','" + comboBox1.Text + "','" + textBox5.Text + "','" + textBox6.Text + "','" + textBox7.Text + "','" + textBox8.Text + "','" + textBox9.Text + "','" + textBox10.Text + "')");
com2 = new OleDbCommand("insert into login(user_id,password,role) values('" + textBox1.Text + "','" + textBox2.Text + "','" + comboBox1.Text + "')");
com1.Connection = con;
com2.Connection = con;
con.Open();
tr = con.BeginTransaction();
com1.Transaction = tr;
com2.Transaction = tr;
com1.ExecuteNonQuery();
com2.ExecuteNonQuery();
tr.Commit();
MessageBox.Show("inserted");

Signature preview salil_k_singh

AnswerRe: solve this error Pin
Anthony Mushrow12-May-08 1:26
professionalAnthony Mushrow12-May-08 1:26 
AnswerRe: solve this error Pin
ScottM112-May-08 1:34
ScottM112-May-08 1:34 
QuestionStrongName Question Pin
William Ten Broek12-May-08 1:20
William Ten Broek12-May-08 1:20 
AnswerRe: StrongName Question Pin
tgrt12-May-08 3:52
tgrt12-May-08 3:52 
GeneralRe: StrongName Question Pin
William Ten Broek12-May-08 10:24
William Ten Broek12-May-08 10:24 
QuestionFile attributes Pin
ScottM112-May-08 0:44
ScottM112-May-08 0:44 
AnswerRe: File attributes Pin
Anthony Mushrow12-May-08 1:28
professionalAnthony Mushrow12-May-08 1:28 
AnswerRe: File attributes Pin
Ashfield12-May-08 1:29
Ashfield12-May-08 1:29 
AnswerRe: File attributes Pin
MoustafaS12-May-08 2:28
MoustafaS12-May-08 2:28 
QuestionHelp with web services in C# Pin
WebMaster12-May-08 0:26
WebMaster12-May-08 0:26 
AnswerRe: Help with web services in C# Pin
Anthony Mushrow12-May-08 1:32
professionalAnthony Mushrow12-May-08 1:32 
GeneralRe: Help with web services in C# Pin
WebMaster12-May-08 6:41
WebMaster12-May-08 6:41 
GeneralRe: Help with web services in C# Pin
Anthony Mushrow12-May-08 6:45
professionalAnthony Mushrow12-May-08 6:45 
QuestionPrint with landscap Pin
cocoonwls12-May-08 0:25
cocoonwls12-May-08 0:25 
AnswerRe: Print with landscap Pin
Gareth H12-May-08 0:55
Gareth H12-May-08 0:55 
GeneralRe: Print with landscap Pin
cocoonwls12-May-08 7:26
cocoonwls12-May-08 7:26 
GeneralRe: Print with landscap Pin
Gareth H12-May-08 9:05
Gareth H12-May-08 9:05 

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.