On a pageLoad event I want to go to two different SharePoint Lists and get the first ListItem from one list and an the last ListItem in another. I don\'t know any o
pageLoad
You can try this to get the last itemID
SPWeb web = SPContext.Current.Web; SPList List = web.Lists[ListName]; int itemId = List.Items[List.ItemCount - 1].ID;
Regards!