Retrieving a Single Document

Thread is closed for posting
2 posts, 0 answers
  1. Michael Webster
    Michael Webster avatar
    3 posts
    Member since:
    Dec 2009

    Posted 08 Dec 2009 Link to this post

    I am populating a drop down list box with the ID and want to be able to link to the document if it is selected.  I have other locations where I will display the document name that has been saved (ID) and will need to retrieve information related to that specific document.  I am able to pull the list of documents for the category, but not a single document.  Can you provide an example of a single document call?

    This is how I am pulling the data for the category and this works.
            var lManager = new LibraryManager();
            var filter = new List<IMetaSearchInfo>();

            filter.Add(new MetaSearchInfo(MetaValueTypes.ShortText, "Category", "SectionName",
                                          SearchCondition.Equal, JoinType.And));
            IList listOfDocs = lManager.GetContent(0, 0, string.Empty,
                                       null, string.Empty,
                                       null, filter.ToArray());
    This is what I was trying to do to make the call for one document.  This does not work.


    var lManager = new LibraryManager();


    var filter = new List<IMetaSearchInfo>();


    Guid[] docGuid = new Guid[1];

    docGuid[0] =

    new Guid(txtDocId.Text);







    new MetaSearchInfo(MetaValueTypes.ShortText, "ID", docID, SearchCondition.Equal, JoinType.And));



    franchiseQueryString = Request.QueryString[




    IList listOfEmploymentDocs = lManager.GetContent(0, 1, "Name ASC", docGuid);
  2. Tsviatko Yovtchev
    Tsviatko Yovtchev avatar
    538 posts

    Posted 09 Dec 2009 Link to this post

    Hi Mike,

     What product are you trying to get support for? Is your issue related to JustCode?

    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top