How to get documents from given category using SelectNodes method

Martin Dobsicek asked on October 4, 2009 07:59

How to get documents from given category using SelectNodes method

Correct Answer

Martin Dobsicek answered on October 4, 2009 07:59

You can use following sample expression in WhereCondition parameter of SelectNodes or SelectDocuments method to get documents from category specified by its ID:

"DocumentID IN (SELECT DocumentID FROM CMS_DocumentCategory WHERE CategoryID = " + categoryId.ToString() + ")"

0 votesVote for this answer Unmark Correct answer

   Please, sign in to be able to submit a new answer.