SPC046102: Declare attribute 'Id' in DelegateControl.

Attribute 'Id' should be declared. Otherwise the delegate control will never be added to a control container.

TypeName: DeclareAttributeIdInControl
CheckId: SPC046102
Severity: CriticalWarning
Type: DelegateControlDefinition
Resolution

Add attribute 'Id' to DelegateControl. See sample below:

<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
   <Control
      Id="AdditionalPageHead"
      Sequence="1000"
      ControlAssembly="EcmaScriptDelegate, Version=1.0.0.0, Culture=neutral, PublicKeyToken=publickeytoken"  
      ControlClass="EcmaScriptDelegate.EcmaScriptDelegateControl">
</Elements>

comments powered by Disqus