Cannot convert type 'System.Web.UI.WebControls.ListViewDataItem' to 'System.Web.UI.WebControls.ListItem'
'System.Web.UI.WebControls.ListItem' does not contain a definition for 'FindControl' and no extension method 'FindControl' accepting a first argument of type 'System.Web.UI.WebControls.ListItem' could be found (are you missing a using directive or an assembly
reference?)
SudhaRubini
Member
391 Points
383 Posts
Re: Error for cannot operate on variables of type in listview
Apr 26, 2012 07:23 AM|LINK
Hi
i add lstcourseNews.items
i got this error
Cannot convert type 'System.Web.UI.WebControls.ListViewDataItem' to 'System.Web.UI.WebControls.ListItem'
'System.Web.UI.WebControls.ListItem' does not contain a definition for 'FindControl' and no extension method 'FindControl' accepting a first argument of type 'System.Web.UI.WebControls.ListItem' could be found (are you missing a using directive or an assembly reference?)
plz help me. how to reslove this