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

How would you connect to database using .NET?

0 Answers  


Does entity framework use ado.net?

0 Answers  


Do we use stored procedure in ADO.Net?

0 Answers  


What are the classes in System.Data.Common Namespace?

0 Answers  


How to find the count of records in a dataset?

6 Answers  


What is XML serialization

0 Answers   Digital GlobalSoft,


What is dataset object? Explain the various objects in dataset.

0 Answers  


Call a stored procedure from ado.net and pass parameter to it ?

7 Answers   Keane India Ltd, TCS,


How to you declare connection strings and how to you make use of web.config ?

3 Answers   MMTS,


Explain how to create dynamic gridview?

0 Answers  


What are basic methods of dataadapter?

0 Answers  


what is bubbled event can u pls explain

3 Answers   Wipro,


Categories