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
public void SearchFilter(object sender, FilterEventArgs e)
{
PageDataCollection pages = e.Pages;
PageData pageData;
for (int pageIndex = 0; pageIndex < pages.Count; pageIndex++)
{
pageData = pages[pageIndex];
if (pageData.PageLink != PageReference.EmptyReference &&
(pageData["PublishExternal"] == null ||
((bool) pageData["PublishExternal"]) == false))
{
pages.RemoveAt(pageIndex);
pageIndex--;
}
}
}
private void Page_Load(object sender, System.EventArgs e)
{
// Filtrera med eget filter
SearchResults.Filter += new FilterEventHandler(SearchFilter);
DataBind();
}