nerdexam
Microsoft

70-573 · Question #21

You create a custom Web Part. You need to ensure that a custom property is visible in Edit mode. Which attribute should you set in the Web Part?

The correct answer is B. WebBrowsable. MNEMONIC RULE: "Web Part is visible = WebBrowsable" The WebBrowsable attribute specifies that the decorated property should appear in the editor component ofthe web part. It only allows the end user to modify the property and does nothing about persistence. WebBrowsable will…

Developing for User Experience

Question

You create a custom Web Part. You need to ensure that a custom property is visible in Edit mode. Which attribute should you set in the Web Part?

Options

  • AWebDisplayName
  • BWebBrowsable
  • CPersonalizable
  • DWebCategoryName

How the community answered

(65 responses)
  • A
    6% (4)
  • B
    77% (50)
  • C
    3% (2)
  • D
    14% (9)

Explanation

MNEMONIC RULE: "Web Part is visible = WebBrowsable" The WebBrowsable attribute specifies that the decorated property should appear in the editor component ofthe web part. It only allows the end user to modify the property and does nothing about persistence. WebBrowsable will make the property appear in the ToolPane or EditorPart of the WebPart. WebBrowsable vs Personalizable in Web Parts

Topics

#Web Part properties#WebBrowsable#Edit mode#custom property

Community Discussion

No community discussion yet for this question.

Full 70-573 Practice