private void BindRegistry() { GiftRegistry = GiftRegistries.GetGiftRegistry(0, 0, EmailTextBox.Text, true); if (GiftRegistry.IsPublic || GetLoggedCustomerID() > -1) { GiftRegistryListView.DataSource = GiftRegistry.Products; GiftRegistryListView.DataBind(); } else if (!GiftRegistry.IsPublic) { PrivateListLiteral.Visible = true; } }
private void BindRegistry() { giftRegistry = GiftRegistries.GetGiftRegistry(0, GetLoggedCustomerID(), string.Empty, true); GiftRegistryListView.DataSource = giftRegistry.Products; GiftRegistryListView.DataBind(); if (giftRegistry.IsPublic) { VisibilityRadioButtonList.SelectedValue = "true"; } else { VisibilityRadioButtonList.SelectedValue = "false"; } }