What are the differences between RAW, AUTO and Explicit modes in retrieving data from SQL Server in XML format?
1 20362How 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 16185Post New TCS ADO.NET Interview Questions
what is the height of tree if leaf node is at level 3. please explain
How much does it cost to replace the hard drive?
How can I use xml?
What five words would be describe you? : insurance sales
What is branching logic control in VB.NET?
On a scale of 1 to 10 rate yourself as a person.
How do I dual boot my pc?
What is struts 2 framework in java?
How many relationships included in sfdc & what are they?
What is action c#?
What do you mean by a grounded load?
How do I merge cells in excel and keep all data?
What is a listener in android?
If you want to share several functions or variables in several files maitaining the consistency how would you share it?
Hi Friends, Can you please let me know the difference between user exist and Routines