var idKey = (from c in table1 // the table1 here has red line under it.
orderby c.IDKey descending
select c).First();
IDKeyField.Text = idKey.IDKey.ToString();
</div> </div>
var idKey = (from c in db.Table1
orderby c.IDKey descending
select c).First();
IDKeyField.Text = idKey.IDKey.ToString();
var idKey = (from c in table1 // the table1 here has red line under it.
orderby c.IDKey descending
select c).First();
IDKeyField.Text = idKey.IDKey.ToString();
</div> </div>
var idKey = (from c in db.Table1
orderby c.IDKey descending
select c).First();
IDKeyField.Text = idKey.IDKey.ToString();
var idKey = (from c in table1 // the table1 here has red line under it.
orderby c.IDKey descending
select c).First();
IDKeyField.Text = idKey.IDKey.ToString();
</div> </div>
var idKey = (from c in db.Table1
orderby c.IDKey descending
select c).First();
IDKeyField.Text = idKey.IDKey.ToString();
Peter Cong
Member
527 Points
681 Posts
Re: How to get the last record (row) from my SQL table,
Dec 22, 2012 05:21 PM|LINK
Thank you so much, Me_ritz,
Yes, this time, it is working now, cheers!