PrepAway - Latest Free Exam Questions & Answers

Which code segment should you add at line 04?

You are creating an application. You develop a custom control that renders a contextual tab. The

control contains the following code segment. (Line numbers are included for reference only.) 01
protected override void OnPreRender(EventArgs e) 02 { 03 SPRibbon curRibbon =
SPRibbon.GetCurrent(this.Page); 04 05
curRibbon.MakeContextualGroupInitiallyVisible(“SP.Ribbon.ContextualGroup”, string.Empty); 06
base.OnPreRender(e); 07 } You need to ensure that when the custom control is rendered, the
custom contextual tab appears in the Ribbon. Which code segment should you add at line 04?

PrepAway - Latest Free Exam Questions & Answers

A.
curRibbon.MakeTabAvailable(“SP.Ribbon.ContextualTab”);

B.
curRibbon.Visible = true;

C.
curRibbon.Enabled = true;

D.
curRibbon.MakeRTEContextualTabsAvailable(“SP.Ribbon.ContextualTab”);


Leave a Reply