What are the differences between RAW, AUTO and Explicit modes in retrieving data from SQL Server in XML format?
1 18735How 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 14458Post New TCS ADO.NET Interview Questions
Which method can be used to set the break point for debugging purpose?
Explain what is general insurance policy? What does it cover? : insurance sales
What is 2nf normalization?
What is cohort size?
How to use {}, [], [] and [()] in template using angular2?
Which are commonly used php based cms?
What is HttpURL connection ?
How do you combine formulas?
How do I search all files in windows?
What is netting and forecast consumption? Explain backward and forward consumption.
Do csrf tokens expire?
what are the types of special stock available?
Mention some of the important characteristics of neo4j?
What is the formula to determine the speed of induction motor?
What is http servlet?