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

FetCh Records No 5 to 10 From Dataset

4 Answers  


What is data relation?

0 Answers  


Advantage of ADO.Net?

2 Answers   QualSoft, TCS,


What are advantages and disadvantages of Microsoft-provided data provider classes in ADO.NET?

2 Answers  


what is the syntax code to oledb to connect oracle

6 Answers   IBM,


What is ado circle?

0 Answers  


What is the usage of the dataset object in ado.net?

0 Answers  


What is maximum pool size in ado.net connection string?

0 Answers  


In how many ways we can retrieve table records count? How to find the count of records in a dataset?

0 Answers  


Explain the advantages and disadvantages of using datalist?

0 Answers  


Why edit is not possible in repeater?

0 Answers  


how we can fire event in databound coulm in datagfrid withot using button?

0 Answers   Tech Mahindra,


Categories