Are monkey testing & gorilla testing same? If not, then what is the difference between these two?
29 54409How 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 16046Post New TCS Interview Questions
What does == mean?
What are the merkle trees? How important are merkle trees in blockchains?
How to insert records in apache tajo?
What is pull down menu box,how giving links using vbscript
What do you know about zend layout?
What are the drawbacks of prosthetic limb?
Explain NULL?
How to convert strings into an array in perl?
what is mean by boiling mechanism ?
Why High voltage are generate noise ?
How do I set a flag for a field in any table?
Explain what are the think-time functions?
How printwriter is different from servletoutputstream?
Difference between Row Id and Row Num?
What is 802.3af and 802.3at?