Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
'property' and 'method'
Message
De
24/02/2004 13:46:00
Keith Payne
Technical Marketing Solutions
Floride, États-Unis
 
 
À
24/02/2004 08:48:50
Mindy Shingara
Central Susquehanna Intermediate Unit
Lewisburg, Pennsylvanie, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires Web
Divers
Thread ID:
00879961
Message ID:
00880397
Vues:
22
You have to bind the DataSource attribute to the table:
... DataSource=<% # dsFiyears.Tables["fi_years"] %>
>Fiscal Year ComboBox
>asp:dropdownlist
>id=drpYear style="Z-INDEX: 103; LEFT: 96px; POSITION: absolute; TOP: 96px" runat="server" Width="208px" Height="35px" Font-Size="X-Small" Font- Names="Verdana" AutoPostBack="True" DataTextField="fydesc" DataSource='dsFiyears.Tables["fi_years"]'
>asp:dropdownlist
>
>If I remove the binding from dropdownlist, I don't get the error. I have the same project written in vb, but have just converted it to c#. In the vb project, I used the databinding property on the dropdownlist which set the datasource = dsFiyears.Tables("fi_years"). I tried to same theory here in the c# project, but it's not working. I have the dataset defined in my code-behind. Let me know if you need more. Thought this would've smacked me in the face by now...what am I missing?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform