I am getting this message:
System.Web.UI.WebControls.ListItemCollection must have items of type 'System.Web.UI.WebControls.ListItem'. 'ListItem' is of type 'System.Web.UI.HtmlControls.HtmlGenericControl'.
My aspx code is:
<aspropDownList ID="ddlPerson" ToolTip="" runat="server" >
<ListItem value="0">[Select Person]</ListItem>
<ListItem value="1">tfstom2</ListItem>
<ListItem value="2">cspear</ListItem>
</aspropDownList>
Why is it getting the ListItem from the other namespace? This is a normal .aspx page.
Thanks,
Tom
System.Web.UI.WebControls.ListItemCollection must have items of type 'System.Web.UI.WebControls.ListItem'. 'ListItem' is of type 'System.Web.UI.HtmlControls.HtmlGenericControl'.
My aspx code is:
<aspropDownList ID="ddlPerson" ToolTip="" runat="server" >
<ListItem value="0">[Select Person]</ListItem>
<ListItem value="1">tfstom2</ListItem>
<ListItem value="2">cspear</ListItem>
</aspropDownList>
Why is it getting the ListItem from the other namespace? This is a normal .aspx page.
Thanks,
Tom