Customize Outlook Web Access display elements

        private string OwaDisplayScript
        {
            get
            {
                StringBuilder sb = new StringBuilder();
                sb.Append("<script language='JavaScript'>function window.onload()");
                sb.Append("{");
                sb.Append("var form = document.forms[0];");
                sb.Append("if( form.document.readyState == 'complete' )");
                sb.Append("{");
                sb.Append("var oStyles = form.document.createStyleSheet();");
                sb.Append("oStyles.addRule( '.tblFolderBar', 'display:none' );");
                sb.Append("oStyles.addRule( '.trToolbar', 'display:none' );");
                sb.Append("}");
                sb.Append("}</script>");
                return sb.ToString();
            }
        }

No Comments