What are the differences between RAW, AUTO and Explicit modes in retrieving data from SQL Server in XML format?
1 19148How 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 15006Post New TCS ADO.NET Interview Questions
How do I put windows 10 into safe mode?
What is the difference between SY-INDEX and SY-TABIX?
How do we do testing in tableau?
Why xml language uses axl:version in the code?
how can i apilly for electrical c licencese.sir,i completed B.Tech in electrical & electronics engineering in 201onot working any company
i need some objective type papers for my certification
What is shared object? (Or) how to store the data in local?
What are the types of the main implementing classes in the map interfaces? : java collections
What does href mean?
What is polytropic process ? Under what conditions it approaches isobaric, isothermal, and isometric process ? In which reversible process no work is done ?
What are the characteristics of javascript ‘strict mode’?
How to change the windows xp product key if wrongly installed with other product key but you have originalproduct key?
For stat. Key figure what is the significance of sender & receiver cost elements & cost centers?
What is a 1 page website?
Stable storage cannot be implemented. (A) Explain why it cannot be. (B) Explain how database system deal with database applications