Are monkey testing & gorilla testing same? If not, then what is the difference between these two?
29 48057How 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 15022Post New TCS Interview Questions
What are the advantages of soap web services?
Where do I learn coding?
What are the purpose of close(), getc() and read() functions?
Define ipconfig?
What is the difference between break and continue?
How many standards of c++ are there?
Can we run Apache Spark without Hadoop?
What is the amount of work done by a carpenter, bar Bender and plaster Mason in interior and exterior plaster
Why do we use binary search?
List out the roles of quality assurance engineer?
Why is 32 bit called x86 and not x32?
how can we find the number of rows in a table using mysql? : Sql dba
What is a controller class in spring?
Explain advantages of ado.net?
Explain the disadvantages of cursors?