Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ObjectDataSource SelectMethod
Message
 
 
À
05/07/2010 11:00:55
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01471404
Message ID:
01471407
Vues:
35
>Hi,
>
>I have a mmGridView which has a combobox in its edit template to allow the user to select an item from a list. This is the definition of the datasource that is supposed to give the combo the items that the user can select (or at least that's what I understand it is supposed to be doing, but could be completely wrong):
>
>
<asp:ObjectDataSource ID="odsRiders" runat="server" SelectMethod="GetRidersAndWaiversByPlan(this.oPolicy.Entity.PlanFK)"
>                                    TypeName="SamaanSystems.IAS.Business.Plan"></asp:ObjectDataSource>
>
>
>I get this error:
>
>ObjectDataSource 'odsRiders' could not find a non-generic method 'GetRidersAndWaiversByPlan(this.oPolicy.Entity.PlanFK)' that has no parameters.
>
>This method does exist, so I guess my problem is how I am passing the parameters. How do I do this?

Remove () from the SelectMethod and use SelectParameters to specify parameters.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform