OleDbDataAdapter ole=new OleDbDataAdapter(new OleDbCommand
("select * from login",oleDbConnection1));
OleDbCommandBuilder cmd=new
OleDbCommandBuilder(ole);
ole.Fill(dataSet11,"login");
DataRow drow=dataSet11.Tables
["login"].NewRow();
drow[0]=textBox1.Text;
drow[1]=textBox2.Text;
drow[2]=textBox3.Text;
dataSet11.Tables["login"].Rows.Add
(drow);
ole.UpdateCommand=cmd.GetUpdateCommand();
ole.Update(dataSet11,"login");
MessageBox.Show("one row added");
this gives exception.how to solve it
Answer Posted / shiva
what is the exception your faced????????
may be the exception is where your declare dataset11
in diconnected model we hav to declre the dataset then only
data willbe fiied in our application.......
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is a dynaset in access?
What are the rules to implement connection pooling?
What is sql command in ado net?
What is the difference between sqldatareader and sqldataadapter?
How can I retrieve two tables of data at a time by using data reader?
What is ado circle?
What is data reader in ado.net?
What is ado.net object model?
What is the difference between a datareader and a dataset?
What is the return type of executescalar?
Which parameter of ConnectionString is used to specify the name of the database?
What are the objects of ado.net?
What is the difference between ado.net and oledb?
What are the namespaces used in ado.net for data access?
How can we perform transactions in .net?