Microsoft Content Management Server - How do I fill a dropdownlist dynamically?

This is Interesting: Free IT Magazines  
Home > Archive > Microsoft Content Management Server > July 2006 > How do I fill a dropdownlist dynamically?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author How do I fill a dropdownlist dynamically?
Jordan

2006-07-30, 12:26 pm

I feel stupid asking this, but I haven't been able to find a solution to the following need.

I have a page, posted in MCMS. The page itself has a dropdownlist that needs to be filled with titles and anchors which need to be dynamically created upon page generation. I've tried creating an HtmlPlaceholder based on the Current Posting, but the HTML comes back empty.

I had thought that it would be possible to convert the current postings placeholders to HtmlPlaceholderControls, but have not been able to figure out how to do this. I keep getting enumeration errors etc..

Basically, what I need to do is scan the current posting for all placeholders named with the last 6 characters containing "Header" (this was easy).. Then convert that placeholder to an HtmlPlaceholderControl so I can extract the anchor and posting text from them and subsequently place them into the dropdown.

Any ideas or help would be greatly appreciated.

Jordan
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com