コード例 #1
0
        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;
            }
        }
コード例 #2
0
        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;
            }
        }
コード例 #3
0
 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;
     }
 }
 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;
     }
 }