London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
AI OnAI Off
London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
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