What is Debug.write does?
What are the steps in connecting to database?
What is the role of data provider in ado.net?
What is the role of the dataset object in ado.net?
How can you implement sub data grid in a master datagrid?
What is azure ado?
What is ado.net components?
What is ambient transaction?
What is command class in ado.net?
Explian About DataAdapters
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();
What is difference between ado.net and asp net?
How to store data in memory?