?
Solved

getting index of last row in asp.net

Posted on 2006-05-25
2
Medium Priority
?
289 Views
Last Modified: 2009-12-16
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?
0
Comment
Question by:DImhoff1
2 Comments
 
LVL 28

Accepted Solution

by:
strickdd earned 2000 total points
ID: 16762902
Select Top 1 ID From Table OrderBy ID Desc
0
 

Author Comment

by:DImhoff1
ID: 16764085
Worked great, thanks!
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
Integration Management Part 2
Loops Section Overview
Suggested Courses

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question