What are the differences between RAW, AUTO and Explicit modes in retrieving data from SQL Server in XML format?
1 19144How 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 14998Post New TCS ADO.NET Interview Questions
How Kotlin works?
Can you use javascript to hack?
How is annotating helpful?
What is the shortcut key to increase the font size in excel?
What are autotrophic beings?
Which class is used for basic button group?
What is difference between @Html.Partial and @Html.RenderPartial ?
How can you start the kafka server?
How to check if a column is nullable before setting to nullable?
What are the other modules to which 'financial accounting' is integrated?
What is the difference between ripv1 & ripv2?
What is core spring framework?
Any modules contributed to drupal community?
can any one explain bar bending schedule of bems and columns and slabs ??
a person have to buy 2kg items out of 4 differnt price tag item i.e potatoo rs. 10 kg, onion rs. 5 kg , radish rs. 1 kg, and chilli rs. 1 kg in rs 10 how can he do