Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8315347
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T21:06:42+00:00 2026-06-08T21:06:42+00:00

I created a Button on the ribbon SelectCp. OnClick of the button I am

  • 0

I created a Button on the ribbon “SelectCp”.

OnClick of the button I am launching a custom aspx page.

Custom aspx page is having a dropdown with the items like.

  1. Select CP
  2. Etc

Now, when user will select the option “Select CP”, I need to populate all the publication in a listitem on the aspx page. When user will select a publication, I need to populate all the component in another list.

Can anyone give an idea how to proceed?

ADDED

I am proceeding Like this, but its not giving the list of publication in the listbox on the aspx page.

protected void ddSelectOption_SelectedIndexChanged(object sender, EventArgs e)
    {
        //CommonTridionTools objCmnUnPub = new CommonTridionTools();
        CoreServiceSession client = new CoreServiceSession();
        SessionAwareCoreServiceClient csClient = client.GetClient();
        ReadOptions readoption = new ReadOptions();
        List<string> PublicationList = new List<string>();
        List<string> ComponentList = new List<string>();

        if (ddSelectOption.SelectedItem.Equals("Select CP"))
        {
            FolderData RootFolder =(FolderData)csClient.Read(tridionPageId, readoption);
            var filter = new OrganizationalItemItemsFilterData
            {
                Recursive = true,
                ItemTypes = new ItemType[] { ItemType.Publication,ItemType.Component, ItemType.ComponentTemplate },
            };
            XElement CompList = csClient.GetListXml(RootFolder.Id,filter);

            foreach (var comp in CompList.Elements())
            {
                PublicationData Publication =(PublicationData)csClient.Read(comp.Attribute("ID").Value, readoption);
                var MetadataXML = new XmlDocument();
                MetadataXML.LoadXml(Publication.Metadata);
                PublicationList.Add(Publication.Id)
                lbPublication.DataSource = PublicationList;

            }
        }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T21:06:43+00:00Added an answer on June 8, 2026 at 9:06 pm

    We have examples for such a Publication drop-down and other controls on the PowerTools 2011 open source project. See the Example Extension source for:

    • markup
    • script
    • service code

    Start by reviewing these, then share your code or start another question when you’re ready.

    Note the nice volunteers for the project created a base class that does some of the work.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've created a simple ribbon button which opens a new ASPX page and passes
I have a custom button created in the ribbon of tridion. If an item
I have created button 2 below: <input id=Button1 type=button value=Stop onclick=alert('hello world');/> <input id=Button2
I want to create a custom ribbon button within Outlook 2007 using Visual Studio
I've got the following Sharepoint problem: I've created a Ribbon Button, which says Read
I am currently trying to show/hide a custom ribbon button based on the value
I'm creating a custom ribbon button in CRM 2011 that creates a trigger entity
I have created button for home like this: UIBarButtonItem * addButton=[[UIBarButtonItem alloc] initWithTitle:@Home style:UIBarButtonItemStyleBordered
Using VSTO, I've created a custom tab in the Ribbon designer and added some
I've create a custom ribbon button that only shows up the Insert block for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.