What are the differences between RAW, AUTO and Explicit modes in retrieving data from SQL Server in XML format?
1 20451How 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 16279Post New TCS ADO.NET Interview Questions
What is location of log files for apache server?
Can linux run on 2gb ram?
Mention why to choose python over java in selenium?
What is client-certificate authentication?
What is a class loader?
Define a path?
Is Namenode machine same as DataNode machine as in terms of hardware in Hadoop?
Explain synthesised frequency hopping?
How do I run an rpm in linux?
How do I fix #ref in excel?
What is the use of static keyword in swift?
Does partitioning improve performance sql server?
Define E- Commerce?
What does hbase consists of?
What should I make with python?