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;
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;
}
}
is working on a reply...