Last post Sep 27, 2005 08:15 AM by jjohns09
Sep 26, 2005 07:06 AM|Lennon][|LINK
I have a custom menu, which I want to add some custom controls, so that when the user clicks on a menu item, it goes to a page with just that control on it.
So for example, suppose I have a module called Users.ascx, and a module called Email.ascx, and I have the following menu:
When the user clicks on Users, I want them to go to a page with just the Users.ascx on it,
and when they click on Email, I want them to go to a page with just the Email.ascx on it.
Rather than create two pages and add the controls manually, I wanted to do it dynamically. This would make it much easier to add extra controls to my custom menu etc.
How can I dynamically (programatically) create a page with a given control on it?
Sep 26, 2005 08:23 AM|jjohns09|LINK
Sep 26, 2005 09:58 AM|Lennon][|LINK
Thanks Jeff, that's kinda what I want to do, however, looking at that thread, all of the controls have to be registered under the same module definition. Then, you can just pass in this.ModuleID, and the control key to the NavigateURL function.
However, my modules are seperate modules - i.e. I have one module which is the menu, one module for Users, and one module for Email. I therefore don't know (or have?) the ModuleID for the Users and Email modules to call from the menu control.
Is there any way around this? What would be good for example, if I wanted to show the Contacts module, to be able to call:
NaviageURL("DNN_Contacts") (the module name)
Sep 27, 2005 08:15 AM|jjohns09|LINK