예제 #1
0
        protected void PublishButton_ServerClick(object sender, EventArgs e)
        {
            Page.Validate();
            if (!Page.IsValid || NodeIdField.Value == String.Empty)
            {
                return;
            }

            int order;

            if (!int.TryParse(ItemOrder.Text, out order))
            {
                order = 10000;
            }

            NavigationManager.AddNavigationItem(NodeIdField.Value, order, ctrlTitleText.Text.Trim(), ItemUrl.Text.Trim(), (PrimaryKeyId?)ProfileId, (PrimaryKeyId?)PrincipalId);

            Mediachase.Ibn.Web.UI.WebControls.CommandHandler.RegisterCloseOpenedFrameScript(this.Page, string.Empty);
        }
예제 #2
0
        protected void PublishButton_ServerClick(object sender, EventArgs e)
        {
            Page.Validate();
            if (!Page.IsValid || NodeIdField.Value == String.Empty)
            {
                return;
            }

            int order;

            if (!int.TryParse(ItemOrder.Text, out order))
            {
                order = 10000;
            }

            string url = String.Format(CultureInfo.InvariantCulture,
                                       "~/Apps/WidgetEngine/Pages/CustomPageView.aspx?PageUid={0}",
                                       PageUid.ToString());

            NavigationManager.AddNavigationItem(NodeIdField.Value, order, ctrlTitleText.Text.Trim(), url, ProfileId, UserId);

            Mediachase.Ibn.Web.UI.WebControls.CommandHandler.RegisterCloseOpenedFrameScript(this.Page, string.Empty);
        }