What are the differences between RAW, AUTO and Explicit modes in retrieving data from SQL Server in XML format?
1 20370How 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 16201Post New TCS ADO.NET Interview Questions
what are the types of electromagnetic forces developed in practical transformer?
-What shall be short circuit current of LV switchgear for a 1000 kva, 11.415kv, 3 phase tranformer with 5% reactance.
What is canonical url?
What are the essential characteristics of signal flow graphs?
How to get the single file as the output from MapReduce Job?
What's the price in 1K quantity?
How can we obtain the generated event?
What is the difference between mvc (model-view-controller) and mvp (model-view-presenter)? : asp.net mvc
Bootstrap analysis evaluates evolutionary trees by sampling columns from the original alignment with replacement (multiplying or removing some of them) and computing a proportion of times that a particular branch appears in the resulting trees. What is the main idea behind this approach?
Why is vba used in excel?
Tell us design gray to binary code converter?
What are exceptions
how to remove all dtddwrappers and labels on zend form elements?
Explain the level of parallelism in spark streaming?
What is Rack awareness?