What are the differences between RAW, AUTO and Explicit modes in retrieving data from SQL Server in XML format?
1 19115How 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 14947Post New TCS ADO.NET Interview Questions
What New Features comes with ASP.NET Web API 2.0?
How you overcame a major obstacle?
What is repo rate and the current repo rate?
what five words would be describe you?
How to measure if agile is working in your team and organization?
How many communication protocols can be used to implement a soap message? Is soap messages are tied to any protocol?
What is a string what operation can be performed out with the help of a string?
Why use POJO when I can use hashmap
What is InputFormat in Hadoop MapReduce?
What is an automated test script?
What is the land scape in sap?
Compare Mutex and Semaphore in java.
Are you able to handle work under pressure?
What is $$ in shell script?
What are the differences between siebel 7.8 and 8.0?