AI OnAI Off
" maincatalog="<%# CurrentPage[ "MainCatalog" ] %>" pagelinkproperty="MainContainer" datasource="<%#GetDataSource()%>" searchquery="<%# txtKeywords.Text %>">
public PageDataCollection GetDataSource()
{
PageDataCollection colRetValue = new PageDataCollection();
PropertyCriteria pcJob = new PropertyCriteria();
pcJob.Type = PropertyDataType.String;
pcJob.Name = "PageTypeName";
pcJob.Value = "GW_Job";
pcJob.Condition = CompareCondition.Equal;
PropertyCriteriaCollection pccJob = new PropertyCriteriaCollection();
pccJob.Add(pcJob);
PageDataCollection colJob = Global.EPDataFactory.FindPagesWithCriteria(Global.EPConfig.StartPage,pccJob);
return colRetValue;
}
Thanks Danie