public virtual void Render(WmlTextWriter writer) {
     LiteralMode mode = Control.Mode;
     if (mode == LiteralMode.PassThrough || mode == LiteralMode.Encode) {
         Style emptyStyle = new Style();
         writer.BeginRender();
         writer.EnterStyle(emptyStyle); // VSWhidbey 114083
         
         if (mode == LiteralMode.PassThrough) {
             writer.Write(Control.Text);
         }
         else /* mode == LiteralMode.Encode */ {
             writer.WriteEncodedText(Control.Text);
         }
         
         writer.ExitStyle(emptyStyle);
         writer.EndRender();
         return;
     }
     
     /* mode == LiteralMode.Transform */
     ((WmlPageAdapter)PageAdapter).RenderTransformedText(writer, Control.Text);
 }
 public virtual void Render(WmlTextWriter writer) {
     ((WmlPageAdapter)PageAdapter).RenderTransformedText(writer, Control.Text);
 }
 internal virtual void RenderSelectOption(WmlTextWriter writer, ListItem item) {
     if (Control.AutoPostBack) {
         ((WmlPageAdapter)PageAdapter).RenderSelectOptionAsAutoPostBack(writer, item.Text, null);
     }
     else {
         ((WmlPageAdapter)PageAdapter).RenderSelectOption(writer, item.Text);
     }
 }