Are monkey testing & gorilla testing same? If not, then what is the difference between these two?
29 55464How 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 16197Post New TCS Interview Questions
Which element has the lowest melting point?
What is the difference between a constant and a static readonly field?
What is get_object_or_404 in django?
What are smart pointers?
How do intelligent tutoring systems personalize education?
can someone tell me a trusted online moneymaking site?
What are data integration tools?
What is the advantage of html5 semantic tags?
How do I publish an xml message?
Does django replace javascript?
What is sap grc audit management?
What do you understand by user buffers?
What is sq transformation?
In an applet one custom button is created on clicking that button all the fields get validated and then message should be displayed on the other applet as the corresponding field values are empty
How to exit a wpf app programmatically?