What are the differences between RAW, AUTO and Explicit modes in retrieving data from SQL Server in XML format?
1 19156How 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();
2 15018Post New TCS ADO.NET Interview Questions
what are compiled queries?
What does mvvm mean?
If Seller is Registered with Karnatka State and Selling the Engg. goods to Delhi based non registered company, then what is the CST they charge?
What are properties in oop?
What are the different license keys type in hana system? What is their validity?
What is the main purpose of inheritance law?
What is the difference between the concrete mix design carried out by IS10262 and by ACI method ?
What are the types of communication provided by jms?
What is the procedure to make the period indicator in the mrp2 view as āpā?
Why is automation testing preferred over manual testing?
What are the design goals of zookeeper?
Is wordpress good for websites?
What is progress apama?
What is hibernate flush?
Why do we show php code in browser?