Calling all developers! We invite you to provide your input on Feature Experimentation by completing this brief survey.
Calling all developers! We invite you to provide your input on Feature Experimentation by completing this brief survey.
PropertyCriteria pageProperty = new PropertyCriteria();
pageProperty.Condition = CompareCondition.Equal;
pageProperty.Type = PropertyDataType.Category;
pageProperty.Value = m_lbCat.SelectedValue.ToString();//CurrentPage.Property["PageCategory"].ToString();
pageProperty.Name = "PageCategory";
criteriaCollection.Add(pageProperty);
string msg = "" ;
foreach(ListItem li in m_lbCat.Items)
{
if(li.Selected == true)
{
msg += "
" + li.Text + " is selected.";
}
}
label1.Text = msg;
PageSearch GlobalList = new PageSearch();
criteria = new PropertyCriteria();
criteria.Name = "PageCategory";
criteria.Required = true;
criteria.Condition = CompareCondition.Equal;
criteria.Type = PropertyDataType.Category;
criteria.Value = "UK,Family";
GlobalList.Criterias.Add(criteria);
PropertyCriteria category = new PropertyCriteria();
category.Name = "PageCategory";
category.Type = PropertyDataType.Category;
category.StringCondition = Filters.StringCompareMethod.Identical;
category.Value = "Technical"; //comma-separated list of ids or names
Criteria = new PropertyCriteria(); Criteria.Name = "Category"; Criteria.Required = true; Criteria.StringCondition = StringCompareMethod.Contained; Criteria.Type = PropertyDataType.Category; Criteria.Value = Category.Find("region").ID.ToString();
Regards Peter