What are the differences between RAW, AUTO and Explicit modes in retrieving data from SQL Server in XML format?
1 20368How 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 ADO.NET Interview Questions
What is meant by impedance diagram?
How much memory is taken by Distributed cache?
How can you attach listeners to events in a view?
Explain debt service coverage ratio. What does it indicate?
Explain the lifecycle of blue prism?
Is the point we want to make the point that really comes across?
How to change server name in sql server?
can anyone tell me about the basic concepts to consider before to start a PLC panel wiring
What is auto increment in mysql?
What is Google AdWords Double Serving policy?
Tell me what happens when you use cables longer than the prescribed length?
How do I make my wordpress site visible?
how to print electricity bill according to following charges first 100 units -1rs per unit for next 200 units-1.50 rs per unit without using conditions
What is the left formula in excel?
What is impulse response? Explain its significance.