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 / 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 |
What is ole used for?
What is the difference between ado.net and entity framework?
Explain the overview of ado.net architecture?
What is the provider being used to access oracle database?
Give an example of a .net application which connects to microsoft access database using ado.net classes.
How to call the SQL commands asynchronously in ADO.NET version 2.0
What is ado rdo dao in visual basic?
What is ole word?
Define bubbled event?
Explain why edit is not possible in repeater?
What are advantages of microsoft-provided data provider classes in ado.net?
What is namespace in ado.net?