getting index of last row in asp.net

I have a table on a sql server and I am using asp.net with c#.  I need to retrieve the index of the last row in a table on the sql server.  How would I do this?
DImhoff1Asked:
Who is Participating?
 
strickddConnect With a Mentor Commented:
Select Top 1 ID From Table OrderBy ID Desc
0
 
DImhoff1Author Commented:
Worked great, thanks!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.