public OutputAdapterControlAdapter(OutputAdapterControl outputControl, ControlAdapter original, Control control, String xslPath) { this.OutputControl = outputControl; this.Original = original; this.XslPath = xslPath; controlField.SetValue(this, control); }
private void setControlAdapter(Control control, ControlAdapter controlAdapter) { Object occasionalFields = occasionalFieldsField.GetValue(control); FieldInfo rareFieldsField = occasionalFields.GetType().GetField("RareFields"); Object rareFields = rareFieldsField.GetValue(occasionalFields); FieldInfo adapterField = rareFields.GetType().GetField("Adapter"); adapterField.SetValue(rareFields, controlAdapter); }
private void RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) { try { BeginRenderTracing(writer, this); if (adapter != null) { // adapter.BeginRender(writer); adapter.Render(writer); adapter.EndRender(writer); } else { Render(writer); } } finally { EndRenderTracing(writer, this); } }
/// <devdoc> /// <para>Used for MobilePage implementation.</para> /// </devdoc> protected void RenderControl(HtmlTextWriter writer, ControlAdapter adapter) { if (!flags[invisible] && !flags[notVisibleOnPage]) { HttpContext context = (Page == null) ? null : Page._context; if (context != null && context.TraceIsEnabled) { int presize = context.Response.GetBufferedLength(); RenderControlInternal(writer, adapter); int postsize = context.Response.GetBufferedLength(); context.Trace.AddControlSize(UniqueID, postsize - presize); } else { RenderControlInternal(writer, adapter); } } else { TraceNonRenderingControlInternal(writer); } }
protected void RenderControl (HtmlTextWriter writer, ControlAdapter adapter) { if ((stateMask & VISIBLE) != 0) { adapter.BeginRender (writer); adapter.Render (writer); adapter.EndRender (writer); } }
protected void RenderControl(HtmlTextWriter writer, ControlAdapter adapter) { Contract.Requires(writer != null); }
private void RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) { if (adapter != null) { adapter.BeginRender(writer); adapter.Render(writer); adapter.EndRender(writer); } else { this.Render(writer); } }
protected void RenderControl(HtmlTextWriter writer, ControlAdapter adapter) { if (!this.flags[0x10] && !this.flags[0x200]) { HttpContext context = (this.Page == null) ? null : this.Page._context; if ((context != null) && context.TraceIsEnabled) { int bufferedLength = context.Response.GetBufferedLength(); this.RenderControlInternal(writer, adapter); int num2 = context.Response.GetBufferedLength(); context.Trace.AddControlSize(this.UniqueID, num2 - bufferedLength); } else { this.RenderControlInternal(writer, adapter); } } }
protected void RenderControl(HtmlTextWriter writer, ControlAdapter adapter);