What should you do?

You create a user control named MySearchBox.ascx.

You plan to change the native search control in SharePoint to MySearchBox.ascx. You implement a Feature that contains the following code segment.

<Control Id=”SmallSearchInputBox”
Sequence=”100″
ControlSrc=”~/_controltemplates/MySearchBox/MySearchBox.ascx”>
</Control>

You discover that the MySearchBox.ascx control fails to appear. You need to ensure that the MySearchBox.ascx control appears.

What should you do?

You create a user control named MySearchBox.ascx.

You plan to change the native search control in SharePoint to MySearchBox.ascx. You implement a Feature that contains the following code segment.

<Control Id=”SmallSearchInputBox”
Sequence=”100″
ControlSrc=”~/_controltemplates/MySearchBox/MySearchBox.ascx”>
</Control>

You discover that the MySearchBox.ascx control fails to appear. You need to ensure that the MySearchBox.ascx control appears.

What should you do?

A.
Add the ControlClass attribute.

B.
Add the ControlAssembly attribute.

C.
Modify the Sequence attribute value.

D.
Remove the ControlSrc attribute value.

Explanation:
MNEMONIC RULE: “Sequence to appear”

ControlSrc is necessary for user control, whereas ControlClass and ControlAssembly are needed for server controls.

Sequence property specifies the sequence number for the control, which determines whether the control is added to the control tree for a page. The control with the lowest sequence number is added to the tree.

Control Element (Delegate Control)
http://msdn.microsoft.com/en-us/library/ms469179.aspx



Leave a Reply 0

Your email address will not be published. Required fields are marked *