protected virtual void RenderPartContents(HtmlTextWriter writer, EditorPart editorPart) { string accessKey = editorPart.AccessKey; if (!string.IsNullOrEmpty(accessKey)) { editorPart.AccessKey = string.Empty; } editorPart.RenderControl(writer); if (!string.IsNullOrEmpty(accessKey)) { editorPart.AccessKey = accessKey; } }
protected virtual void RenderPartContents(HtmlTextWriter writer, EditorPart editorPart) { // The AccessKey is rendered by the chrome on the <legend> tag, so we don't want // the EditorPart to render it on its own tags. string accessKey = editorPart.AccessKey; if (!String.IsNullOrEmpty(accessKey)) { editorPart.AccessKey = String.Empty; } editorPart.RenderControl(writer); if (!String.IsNullOrEmpty(accessKey)) { editorPart.AccessKey = accessKey; } }