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:
01314789
Views:
9
>>>>
>>>> '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;
>
Thanks Paul I have it correct now.

Sorry I hate to make it seem like your having to write the code but I am feeling my way here a little.


Nick
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform