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 @@rowcount and with small code snippet explain the usage?
What is ado net stands for?
What are the key events of sqlconnection class?
What is the significance of CommandBehavior.CloseConnection ?
Explain why edit is not possible in repeater?
What is the use of adodc?
What is method to get XML and schema from Dataset? getXML() and get Schema ()
Is ADO.NET derived from COM? true /false
Can we do database operations without using any of the ado.net objects?
Why is stored procedure used in ado.net?
What is serialization and de-serialization in .net?
Explain how to bind the controls(best practice) comboboxes to the data in the dataset?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)