Hi Trevor, thank you for your reply. I need a bit more logic/more advanced if statement,
because i have to combine the querystrings of the paginator and the categories.
That is the reason why i was playing around with the multiline if statements.
I've managed to solve my issue with the following combination:
<% if(Request.QueryString["pages"] == null) { %>
<%# IfCompare(Request.QueryString["categoryname"],Eval("CategoryName").ToString().ToLower(), "<a href=\""+CurrentDocument.NodeAliasPath+".aspx?categoryname="+Eval("CategoryName").ToString().ToLower()+"\" class=\"filter__item\">"+Eval("CategoryName")+"</a>", "<a href=\""+CurrentDocument.NodeAliasPath+".aspx\" class=\"filter__item filter__item--active\">"+Eval("CategoryName")+"</a>") %>
<% } else { %>
<%# IfCompare(Request.QueryString["categoryname"],Eval("CategoryName").ToString().ToLower(), "<a href=\""+CurrentDocument.NodeAliasPath+".aspx?page="+Request.QueryString["pages"]+"&categoryname="+Eval("CategoryName").ToString().ToLower()+"\" class=\"filter__item\">"+Eval("CategoryName")+"</a>", "<a href=\""+CurrentDocument.NodeAliasPath+".aspx?page="+Request.QueryString["pages"]+"\" class=\"filter__item filter__item--active\">"+Eval("CategoryName")+"</a>") %>
<% } %>
There must be a waaay better way to accomplish this, but at least this works :)