Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
'property' and 'method'
Message
From
24/02/2004 13:48:35
Keith Payne
Technical Marketing Solutions
Florida, United States
 
 
To
24/02/2004 13:46:00
Keith Payne
Technical Marketing Solutions
Florida, United States
General information
Forum:
ASP.NET
Category:
Web forms
Miscellaneous
Thread ID:
00879961
Message ID:
00880402
Views:
27
Less-than|Percent|Pound dsFiYears.Tables["fi_years"] Percent|Greater-then

>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?
Previous
Reply
Map
View

Click here to load this message in the networking platform