Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Custom Paging - How to pass parameters
Message
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Divers
Thread ID:
01404383
Message ID:
01404948
Vues:
41
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform