void AccountBlogRoll_Delete(object sender, EventArgs e)
        {
            long id = core.Functions.RequestLong("id", 0);
            BlogRollEntry bre = null;

            try
            {
                bre = new BlogRollEntry(core, id);
            }
            catch (InvalidBlogRollEntryException)
            {
                DisplayGenericError();
                return;
            }

            Dictionary<string, string> hiddenFieldList = new Dictionary<string, string>();
            hiddenFieldList.Add("module", ModuleKey);
            hiddenFieldList.Add("sub", Key);
            hiddenFieldList.Add("mode", "delete");
            hiddenFieldList.Add("id", bre.Id.ToString());

            core.Display.ShowConfirmBox(core.Hyperlink.AppendSid(Owner.AccountUriStub, true),
                "Confirm",
                "Do you really want to delete this blog roll entry?",
                hiddenFieldList);
        }
        void AccountBlogRoll_New(object sender, ModuleModeEventArgs e)
        {
            SetTemplate("account_blog_roll_new");

            BlogRollEntry bre = null;

            long id = core.Functions.FormLong("id", core.Functions.RequestLong("id", 0));
            string title = core.Http.Form["title"];
            string uri = core.Http.Form["uri"];

            if (e.Mode == "new")
            {
            }
            else if (e.Mode == "edit")
            {
                if (id > 0)
                {
                    try
                    {
                        bre = new BlogRollEntry(core, id);

                        title = bre.Title;
                        uri = bre.EntryUri;

                        template.Parse("S_ID", id.ToString());
                        template.Parse("EDIT", "TRUE");
                    }
                    catch (InvalidBlogEntryException)
                    {
                        DisplayGenericError();
                        return;
                    }
                }
                else
                {
                    DisplayGenericError();
                    return;
                }
            }

            template.Parse("S_TITLE", title);
            template.Parse("S_URI", uri);

            SaveItemMode(new ItemModuleModeHandler(AccountBlogRoll_SaveNew), bre);
        }
        void AccountBlogRoll_DeleteSave(object sender, EventArgs e)
        {
            AuthoriseRequestSid();

            if (core.Display.GetConfirmBoxResult() == ConfirmBoxResult.Yes)
            {
                long id = core.Functions.FormLong("id", 0);
                try
                {
                    BlogRollEntry bre = new BlogRollEntry(core, id);

                    bre.Delete();
                    SetRedirectUri(BuildUri());
                    core.Display.ShowMessage("Blog Roll Entry Deleted", "The blog roll entry has been deleted");
                }
                catch (InvalidBlogEntryException)
                {
                    DisplayGenericError();
                    return;
                }
                catch (UnauthorisedToDeleteItemException)
                {
                }
            }
            else
            {
                SetRedirectUri(BuildUri());
                core.Display.ShowMessage("Blog Roll Entry Not Deleted", "The blog roll entry has not been deleted");
            }
        }