asp.net - how to find the max id from a generic list -
I am getting a collection of data in the object of the list and I want to get the maximum id.` from this list Returns OK, you specified maximum in the title, and In the last question, here are both: Maximum: Last: Convert.ToString (objinfo.Item ("0"). Photo_Id +1) The "0" id, but I want to get the ID of the last item.
Photo_Image = hdd_AlbID.Value.ToString () & amp; "_" & Amp; _ Objinfo.Max (function (o) o.Photo_Id) _ .Photo_Id.ToString ()
Photo_Image = hdd_AlbID.Value.ToString () & Amp; "_" & Amp; _ Objinfo.Last (). Photo_Id.ToString ()
Comments
Post a Comment