Hi,
I have a non-key entry for the main page in the module, a 'settings' key for that 'page within a page' functionality and a third key [edit] for my "Stage #1" Page.
All this works.
The particular problem I have [and hence the need for a fourth page [Stage #2] is that on my 'stage#1' page I am using partial rendering [ajax update panel] in which I use the Ajax Popup control extender. Works very well.
"Stage #2" needs to use the file uploader and Microsoft haven't yet fixed the bug that prevents use of this control under an update panel. I therefore need to produce a separate page without partial rendering in order to use it!
So, I still need to have two pages [plus my settings] in my menu drop-down in the the user module that hosts all this.
1. Added the following code to the 'View' ascx.vb
Actions.Add(GetNextActionID,"Stage #1", Entities.Modules.Actions.ModuleActionType.EditContent,
"","", EditUrl(), False, DotNetNuke.Security.SecurityAccessLevel.Edit, True, False)
Actions.Add(GetNextActionID,"Stage #2", Entities.Modules.Actions.ModuleActionType.EditContent,
"","", EditUrl(), False, DotNetNuke.Security.SecurityAccessLevel.Edit, True, False)
2. added two .ascx files to the project and put the relevant html and code-behind in each. Indvidually, these pages work.
3. added the controls to the module in the Host>Module Definitions for the module.
My entries were Key: Edit
Type: Edit
Title: Stage #1
and
Key: View/edit/anything!!
Type: View/edit/Anonymous etc..
Title: Stage #2
....selecting the appropriate .ascx file for each control.
I can only see the page that has 'Edit' for the key type,[I've switched them over].
Using 'Edit' for both results in an error.[I'm sure this is by design....]
I've tried several other 'keywords' [View, Anonymous etc..]
Nothing seems to work. Problem is - I can never see both!
What am I doing wrong??
D.