Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DropDownlist initial value
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01314718
Message ID:
01314777
Views:
7
This message has been marked as the solution to the initial question of the thread.
>>>
>>> 'System.EventArgs' does not contain a definition for 'FindControl' and no extension method 'FindControl' accepting a first argument of type 'System.EventArgs' could be found (are you missing a using directive or an assembly reference?)
>>>
>>>Also my problem is that control is not being found so it would still return null.
>>>
>>
>>Dang, serves me right for pasting code into the editor on the UT then making changes. The code should be:
>>
>>protected void DropDownList2_DataBound(object sender, ListViewItemEventArgs e)
>
>Hi Paul
>
>now I get
>
>System.Web.UI.WebControls.ListViewItemEventArgs' does not contain a definition for 'FindControl' and no extension method 'FindControl' accepting a first argument of type 'System.Web.UI.WebControls.ListViewItemEventArgs' could be found (are you missing a using directive or an assembly reference?)

Dang, twice in a row.
   DropDownList list = e.Item.FindControl("DropDownList2") as DropDownList;
-Paul

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

Click here to load this message in the networking platform