Last post Dec 27, 2005 12:31 PM by chris6506
Dec 26, 2005 06:21 PM|chris6506|LINK
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
objListItem = New ListItem
objListItem.Value = drModelCampaignExclusions("Control_ID")
objListItem.Value = drModelCampaignExclusions("Display")
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.
Dec 26, 2005 06:57 PM|hooligannes97|LINK
Dec 27, 2005 08:59 AM|chris6506|LINK
Thanks for the response.
In a regular .aspx page, the class inherits using Inherits System.Web.UI.Page. In my DNN page it inherits using
Inherits Entities.Modules.PortalModuleBase. As VB.net does not allow for multiple inheritance, is there a way to access the
ListItem object which is part of the System.Web.UI.Page class?
Thanks for your help.
Dec 27, 2005 09:06 AM|hooligannes97|LINK
Dec 27, 2005 09:16 AM|chris6506|LINK
I just tried this...
and it failed as well. Thanks for your time though.
Dec 27, 2005 09:31 AM|hooligannes97|LINK
Dec 27, 2005 12:31 PM|chris6506|LINK
That fixed my problem. Thank you very much for your help! :-)