Hi all! I am developing a custom module in DNN 3.1. I have the framework in place and everything compiles and displays fine in the portal. My problem is that the module needs to hit the database then based on the results, dynamically add other controls to the page (textnboxes, dropdown lists, etc.) I can dynamically add a dropdown list but when I go to populate it with the following code...
Dim objListItem As ListItem
While drModelCampaignExclusions.Read()
objListItem = New ListItem
objListItem.Value = drModelCampaignExclusions("Control_ID")
objListItem.Value = drModelCampaignExclusions("Display")
cblModelCampaignExclusions.Items.Add(objListItem)
End While
I find that the ListItem does not appear in the intellisense. Under the first line of code I get the error Type 'ListItem' is not defined. Is there something I am missing or going about the wrong way? Any pointers would be greatly appreciated.
Thanks!
Chris