I am using Dnn 4.8.4
I created Dynamic module , In that module I added new user control ( Dotnetnuke --> My Dynamic Module --> Templates --> user control .ascx )
When I am using keyword ModuleID it returns -1 , when I am using same keyword in View page ( Dotnetnuke --> My Dynamic Module --> ViewPage .ascx ) I am getting my Module ID . I copy paste same code from Viewpage to usercontrol.ascx . but still I am not getting
I am calling my usercontrol from view Page
Please help me
My View Page Code ( Dotnetnuke --> My Dynamic Module --> ViewPagel .ascx )
Dim uc_template As UserControl
uc_template = LoadControl("~/DesktopModules/Flash/Templates/Flash.ascx")
pnlTemplate.Controls.Add(uc_template)
My usercontrol code ( Dotnetnuke --> My Dynamic Module --> Templates --> user control .ascx )
Partial Class ViewFlashFile
Inherits Entities.Modules.PortalModuleBase
Implements Entities.Modules.IActionable
CODE..................
..........................
Public ReadOnly Property ModuleActions() As Entities.Modules.Actions.ModuleActionCollection Implements Entities.Modules.IActionable.ModuleActions
Get
Dim Actions As New Entities.Modules.Actions.ModuleActionCollection
Actions.Add(GetNextActionID, Localization.GetString(Entities.Modules.Actions.ModuleActionType.AddContent, LocalResourceFile), Entities.Modules.Actions.ModuleActionType.AddContent, "", "", EditUrl(), False, Security.SecurityAccessLevel.Edit, True, False)
Return Actions
End Get
End Property