Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Custom Paging - How to pass parameters
Message
General information
Forum:
ASP.NET
Category:
Forms
Miscellaneous
Thread ID:
01404383
Message ID:
01404948
Views:
39
This message has been marked as a message which has helped to the initial question of the thread.
>Hi all,
>
>I'm facing the problem on passing startRowIndex, maximumRows and sortExpression as parameters to my ObjectDataSource SelectMethod after refering to the following articles.
>
>Do I need to manually get the PageIndex and MaxRows from CodeBehind, or there is an easier approach? Also, is the function specified in the the SelectCountMethod must be a function in ASPX code behind?
>

No, neither methods need to be in your code-behind. They can exist in a business object, or anywhere else. ObjectDataSource should use the type specified in TypeName (so you could set it to the fully qualified type name). It will use reflection to find the methods specified in SelectMethod and SelectCountMethod that have the same parameters as specified in the SelectParameters collection (your method parameter names have to match the names provided in this collection).
-Paul

RCS Solutions, Inc.
Blog
Twitter
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform