Beispiel #1
0
 /// <summary>
 /// Handles the OnDataBound event of the rrPrompt control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
 protected void rrPrompt_OnDataBound(object sender, EventArgs e)
 {
     if (rrPrompt.Items.Count == 0)
     {
         FindControlRecursive(Page, WidgetId.ToString()).Visible = false;
     }
     else if (rrPrompt.Items.Count == 1)
     {
         plNavigation.Visible = false;
     }
     else
     {
         AddNavigationButtons();
     }
 }
Beispiel #2
0
 /// <inheritdoc />
 public void WriteAttribute(string name, WidgetId value)
 {
     WriteAttribute(name, value.ToString());
 }