Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
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