nerdexam
Microsoft

70-573 · Question #242

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…

The correct answer is C. Modify the Sequence attribute value. MNEMONIC RULE: "Sequence to appear" ControlSrc is necessary for user control, whereas ControlClass and ControlAssembly are needed for servercontrols. Sequence property specifies the sequence number for the control, which determines whether the control isadded to the control…

Developing SharePoint Sites

Question

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?

Options

  • AAdd the ControlClass attribute.
  • BAdd the ControlAssembly attribute.
  • CModify the Sequence attribute value.
  • DRemove the ControlSrc attribute value.

How the community answered

(32 responses)
  • A
    13% (4)
  • B
    6% (2)
  • C
    78% (25)
  • D
    3% (1)

Explanation

MNEMONIC RULE: "Sequence to appear" ControlSrc is necessary for user control, whereas ControlClass and ControlAssembly are needed for servercontrols. Sequence property specifies the sequence number for the control, which determines whether the control isadded to the control tree for a page. The control with the lowest sequence number is added to the tree. Control Element (Delegate Control)

Topics

#delegate control#Sequence attribute#SmallSearchInputBox#Feature

Community Discussion

No community discussion yet for this question.

Full 70-573 Practice