/////////////////////////////////////////////////////////////////////////// // IControlAdapter implementation /////////////////////////////////////////////////////////////////////////// public override void Render(HtmlMobileTextWriter writer) { writer.BeginResponse(); if (RequiresPragmaNoCacheHeader()) { Page.Response.AppendHeader("Pragma", "no-cache"); } if (writer.SupportsMultiPart) { // -1 means it doesn't care about forms' total weight _renderableForms = Page.ActiveForm.GetLinkedForms(-1); Debug.Assert(_renderableForms != null, "_renderableForms is null"); foreach (Form form in _renderableForms) { RenderForm(writer, form); } } else { RenderForm(writer, Page.ActiveForm); } writer.EndResponse(); }