ADO.NET Interview Questions
Questions Answers Views Company eMail

what is data access layer?

Honeywell,

2 7635

What is the default view of Data Grid?

TCS,

5 12847

what is Sql Native Client?

Gantec Solutions,

5 16809

How To Update A Column In A DataGrid Using C#.NET? I am getting InvalidCastException as (Specified cast is not valid) while updating 2nd column in a datagrid? Id,firstname,lastname are the three columns of my datagrid respectively. I wanted to edit the second column(lastname) and update it. I did the following code in DataGrid's updatecommand(),but failed to update ! Int varid=(int)DataGrid1.DataKeys[e.Item.ItemIndex]; TextBox lnm=(TextBox)e.Item.Cells[2].Controls[0]; string str=lnm.Text ; SqlCommand cmd=new SqlCommand("update customer set lastname='" + str + "' where id=" + varid + "",con); cmd.ExecuteNonQuery(); DataGrid1.EditItemIndex=- 1; DataGrid1.DataBind();

Mind Tree, TCS,

2 14997

what is the syntax code for oldb to connect oracle?

2 3897

what is execute scalar?

Atharva Infotech, Dohatec New Media, Make eIT, Protech,

11 20808

what is Execute NOn Query?

Infosys, Protech, Sars Systems, SwanSoft Technologies,

29 61063

what is the syntax code for oldb to connect oracle

IBM,

3 5082

what is the syntax code to oledb to connect oracle

IBM,

6 9643

When we are running the Application, if any errors occur in the Stored Procedure then how will the server identify the errors?

HCL,

5 9816

how do u connect ado.net to sql server

Microsystems,

1 4995

how to keep track of index in listbox items.

2 4816

How do we invoke queries from the application

2 3443

Why sql Data Reader object not created

Matrix,

9 19341

what is the criteria of selection in sbi interview?

BCS, State Bank Of India SBI,

1 3919


Post New ADO.NET Questions

Un-Answered Questions { ADO.NET }

Which method is used by command class to execute SQL statements that return single value?

549


Why edit is not possible in repeater?

514


How do we use stored procedure in ADO.NET and how do we provide parameters to the stored procedures?

560


Some important instruction regarding ADO.NET connection string ?

534


Which database is the ado.net sql connection object designed for?

580






What is data control techniques?

501


If a table contains 20000 records . In a page at each time 100 records to be displayed what are the steps you will take to improve performance? Will you use dataset or datareader?

607


What is the functionality of data provider in ado.net?

483


Why is ADO.NET serialization slower than ADO ?

559


Is ado.net an orm?

508


What are the data access namespaces in .NET?

622


How does entity framework work?

461


How to find the given query is optimised one or not?

500


What is isolation?

561


What is DataRowCollection?

617