Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Roger 195 posts 474 karma points
    Jan 27, 2014 @ 17:46
    Roger
    0

    Update content control not visible

    I have an update content usercontrol that works fine but I need it to show/hide based on current member id matching the member id of the node (member picker).

    I have tried populating 2 labels with the values of the member picker document type property (venueOwner) and the current member id. This works fine. The labels are populating. However, the panel isnt visible. Here's the basic code behind:

      if (!IsPostBack)
            {

                // populate the text fields
                Node currentPage = Node.GetCurrent();
                pageName.Text = currentPage.Name;
                bodyText.Text = currentPage.GetProperty("bodyText").Value;

                var userid = Membership.GetUser().ProviderUserKey;

                var vo = currentPage.GetProperty("venueOwner");

                lblOwner1.Text = userid.ToString();
                lblOwner2.Text = vo.ToString();

                if (userid != vo)
                {
                    Panel1.Visible = false;
                }

            }

Please Sign in or register to post replies

Write your reply to:

Draft