How can i search like this top 10 or 25 or 50 or 100 pls help me

How can i search like this top 10 or 25 or 50 or 100 pls help me

Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Naimish MakwanaPosted Mar 9, 2023, 4:57 AM
Hello Jaya,
You can use Top filter in your SQL query to get top data.
You need to pass one parameter in your proc. And then use it in query like below.
Thanks
Naimish Makwana
Tuhin PaulPosted Mar 22, 2023, 1:45 PM
IF I try the Mongodb version of the accepted answer:
collection is an instance of IMongoCollection and t represents the documents in the collection. I think Mongodb databases don't support a TOP keyword since they don't have a concept of ordering.
Tuhin PaulPosted Mar 22, 2023, 1:42 PM
here is the linq version of the accepted answer:
context is an instance of your Entity Framework DbContext and Table is the name of the corresponding table.
Jaya PrakashPosted Mar 21, 2023, 7:59 AM
Jaya PrakashPosted Mar 21, 2023, 6:28 AM
Jaya PrakashPosted Mar 9, 2023, 10:22 AM
Thank You all
Amit MohantyPosted Mar 9, 2023, 5:49 AM
Check the attached zip file, this may help you to fix your issue.
Jignesh KumarPosted Mar 9, 2023, 5:24 AM
Hello jaya prakash,
Please refer this one,
https://www.c-sharpcorner.com/blogs/custom-page-size-and-paging-for-asp-net-grid-view
Vishal JoshiPosted Mar 9, 2023, 4:57 AM
Hello
On client side use this
On server side use
Thanks