I have already created a webpart to show the data from list, but I really want is to only show top 5 records from that list (by using CAML query).
Does anyone know h
The below code shows top 5 records from the list (by using CAML query).
SPQuery spQuery = new SPQuery(); spQuery.Query = ""; spQuery.RowLimit = 5;