How to fetch the last inserted record in a particular table?
Answer Posted / muskaan
if(ds.Tables["tablename"].Rows.Count>0)
{
ds.Tables{"tablename"].Rows.Count-1;
}
| Is This Answer Correct ? | 3 Yes | 4 No |
Post New Answer View All Answers
Which is better ole db or odbc?
What is an orm, and why would you use one instead of plain old ado.net?
differences between ADO and ADO.NET
What are the key features of ado.net?
What is the usage of the dataset object in ado.net?
Some important instruction regarding ADO.NET connection string ?
how we can fire event in databound coulm in datagfrid withot using button?
Is it possible to edit data in Repeater control?
How to identify the updated rows in a dataset?
What is the use of sqldatareader class?
Explain the various objects in dataset.
What providers does Ado.net uses?
What are the important features of ado.net 2.0?
Define data access layer?
What is the difference between ADO and ADO.Net?