What are the features of ado.net?
No Answer is Posted For this Question
Be the First to Post Answer
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();
i want 2 pass values(enterd in textbox)to table in sql server without using stored procedure in c#.plz tell me code with an example.
Define the data provider classes that is supported by ado.net?
What is microsoft ado.net?
Which one of the objects is a high-level abstraction of the connection and command objects in ado.net?
What are the steps in connecting to database ?
Which is faster dataset or datareader?
How do you sort the data in datagrid?
Which object is used to add relationship between two Datatables?
What are the ado.net objects?
Does sqlclient and oledb class share the same functionality?
What are the different namespaces used in the project to connect the database? What data providers available in .net to connect to database?