Author: desertfoxaz | Posted on: 7/15/2008 4:35:38 PM | Views : 619

This is somewhat related to my previous post at http://forums.asp.net/p/1290486/2491872.aspx#2491872.

If you use the MembershipProvider class' GetAllUsers method, it takes the pageIndex and pageSize as arguments, and returns the totalRecords as an output parameter.  The method itself returns a MembershipUserCollection, which can then be bound to a GridView control.

I've read the MSDN documentation, and from what I can tell, the arguments to the GetAllUsers method exist to help with paging data.  Let's assume the data store has 1,000 users and you've configured your GridView control to show 10 users per page.  It's wasteful to store 1,000 MembershipUser objects in the GridView control when you only display 10 at a time.  I can see that these arguments could be helpful because you could return 10 users w ...

Go to the complete details ...