Search code examples
sharepointenumsmossweb-parts

Get Departments and use them in a combobox MOSS 2007


Anyone knows how to do this?

I need to get all the "Departments" from MOSS 2007 and use them in the editable properties of a webpart...

My only idea how to solve this would be by getting the departements in the constructor of my webpart and writing it to an enum using reflection, but maybe that's to complicated or impossible to do.

Thanks,

Ruben


Solution

  • You'll probably need to create a custom ToolPart in your webpart.

    Here is a similar question and the tutorial on msdn.