title: Icons for editing missing in a custom DotNetNuke Module
body: <p>I am using DNN 7.00.04.</p>
  
  <p>I have developed a custom module for which some icons do not show up when I log in as superuser and go into Edit mode at page level.</p>
  
  <p>The following screen shot shows that only one icon displays for Exam Tracker module.
  <img src="https://i.stack.imgur.com/GSpvT.png" alt="Some icons do not display for custom module"></p>
  
  <p>How can I ensure that the missing icons show up for the custom module?</p>
  
  <p><strong>UPDATE:</strong> I found that when I commented some code in code-behind of my custom module view user control, then the third icon displayed. But I don't know why the code in Page_Init event was causing the third icon (  from left) to not appear? The code for this view control is as below.</p>
  
  <pre><code> Public Class viewExamTracker
      Inherits DotNetNuke.Entities.Modules.PortalModuleBase   'System.Web.UI.UserControl
  
      Protected Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
          Dim x As Boolean = Me.IsEditable
  
          '******** CODE BELOW NEEDED TO BE COMMENTED FOR THIRD ICON to show  up******
          Dim action As DotNetNuke.Entities.Modules.Actions.ModuleAction = New DotNetNuke.Entities.Modules.Actions.ModuleAction(GetNextActionID)
          action.Title = "Add New Exam"
          action.CommandName = ""
          action.Url = EditUrl()
          action.Secure = SecurityAccessLevel.Edit
          action.Visible = True
          MyBase.Actions.Add(action)**
          'MyBase.Actions.Add(GetNextActionID, "Add New Exam", "", "", "", URL:=EditUrl(), secure:=SecurityAccessLevel.Edit, Visible:=True)
      End Sub
      Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
          'Put user code to initialize the page here
  
          Dim objExamTracker As New ExamTrackerController
          Dim list As ArrayList
  
          If Not Page.IsPostBack Then
              list = objExamTracker.GetExamTrackerList()
              Me.grdExamTracker.DataSource = list
              Me.grdExamTracker.DataBind()
          End If
      End Sub
  </code></pre>