Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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



OleDbDataAdapter ole=new OleDbDataAdapter(new OleDbCommand ("select * from login",oleDbCo..

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

Post New Answer

More ADO.NET Interview Questions

What is @@rowcount and with small code snippet explain the usage?

4 Answers   BirlaSoft,


What is ado net stands for?

0 Answers  


What are the key events of sqlconnection class?

0 Answers  


What is the significance of CommandBehavior.CloseConnection ?

0 Answers   NA,


Explain why edit is not possible in repeater?

0 Answers  


What is the use of adodc?

0 Answers  


What is method to get XML and schema from Dataset? getXML() and get Schema ()

0 Answers  


Is ADO.NET derived from COM? true /false

2 Answers   Infosys,


Can we do database operations without using any of the ado.net objects?

0 Answers  


Why is stored procedure used in ado.net?

0 Answers  


What is serialization and de-serialization in .net?

0 Answers  


Explain how to bind the controls(best practice) comboboxes to the data in the dataset?

0 Answers  


Categories