Exemple #1
0
        /// -----------------------------------------------------------------------------
        ///         ''' <summary>
        ///         ''' cmdDelete_Click runs when the delete button is clicked
        ///         ''' </summary>
        ///         ''' <remarks>
        ///         ''' </remarks>
        ///         ''' <history>
        ///         '''     [cnurse]	9/23/2004	Updated to reflect design changes for Help, 508 support
        ///         '''                       and localisation
        ///         ''' </history>
        ///         ''' -----------------------------------------------------------------------------
        public void cmdDelete_Click(object sender, EventArgs e)
        {
            try
            {
                if (itemId != -1)
                {
                    LinkController.DeleteLink(itemId, ModuleId);
                    ModuleController.SynchronizeModule(ModuleId);
                }

                // Redirect back to the portal home page
                Response.Redirect(DotNetNuke.Common.Globals.NavigateURL(), true);
            }
            catch (Exception exc)
            {
                Exceptions.ProcessModuleLoadException(this, exc);
            }
        }