What are the differences between RAW, AUTO and Explicit modes in retrieving data from SQL Server in XML format?
1 20288How 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 16101Post New TCS ADO.NET Interview Questions
Do you know how ruby looks up a method to invoke?
List any five applications of data warehouse.
How do peptides react with cyanogen bromide?
What is required technological drivers in data mining?
How to Pass a function to a procedure or vice versa?
What is protected inheritance?
what is duty cycle?
Explain the difference between jvm and jre?
What is a quality stage in datastage tool?
When will you not be able to see the plugin menu on a wordpress site?
What is the use of httpservletrequestwrapper and httpservletresponsewrapper?
How can we create callable modules of program code within one abap/4 program? : abap modularization
what stage/s of the development lifecycle should end users be involved?
How do I install and use mysql?
How to Test with No Server?