Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I am wondering if there is any way to find a list all deletage controls which exist on SharePoint Root group by ControlID and Ordered by Sequence.

How does sharepoint locate the control with lowest sequence id when AllowMultipleControls is set to false?

share|improve this question
2  
My dev laptop isn't handy right now, but if you open up Microsoft.SharePoint.dll in ILSpy or similar, then look for Microsoft.SharePoint.WebControls.DelegateControl.CreateChildControls() it might give you some clues there. –  James Love Jul 14 '11 at 21:28
    
Thanks for the direction. I am doing that. –  Ashish Patel Jul 14 '11 at 23:30
    
James, the classes which can get me there are internal. So I guess we are left with writing our own script/code. –  Ashish Patel Jul 15 '11 at 2:21
2  
Yeah they'll be uncallable, but at least you can see how it does it, so you can replicate it. –  James Love Jul 15 '11 at 7:05
add comment

1 Answer

up vote 1 down vote accepted

I guess one way to do this would be to iterate over all the feature definitions in the Farm looking for the relevant elements defintions. I recall needing to do something like that when I needed to list all Custom Actions. As the points above state, all the info can be seen using the reflector/ILSpy and you'll need to write your own versions.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.