protected virtual void RenderPartContents(HtmlTextWriter writer, WebPart webPart) { if (!String.IsNullOrEmpty(webPart.ConnectErrorMessage)) { if (!Zone.ErrorStyle.IsEmpty) { Zone.ErrorStyle.AddAttributesToRender(writer, Zone); } writer.RenderBeginTag(HtmlTextWriterTag.Div); writer.WriteEncodedText(webPart.ConnectErrorMessage); writer.RenderEndTag(); // Div } else { webPart.RenderControl(writer); } }
protected virtual void RenderPartContents(HtmlTextWriter writer, WebPart webPart) { if (!String.IsNullOrEmpty(webPart.ConnectErrorMessage)) { if (!Zone.ErrorStyle.IsEmpty) { Zone.ErrorStyle.AddAttributesToRender(writer, Zone); } writer.RenderBeginTag(HtmlTextWriterTag.Div); writer.WriteEncodedText(webPart.ConnectErrorMessage); writer.RenderEndTag(); // Div } else { webPart.RenderControl(writer); } }
protected override void RenderPartContents(HtmlTextWriter writer,WebPart part) { if (part == this.WebPartManager.SelectedWebPart) HttpContext.Current.Response.Write("<span>Not rendered</span>"); else //if (this.Zone.GetType() == typeof(MyZone)) part.RenderControl(writer); }