sharepoint零散知识汇总

<p>1.弹出提示信息:</p>
<p>注意:页面上千万不要用到ScriptManager 于UpdatePanl 否则后台输出的脚本在前台不会执行</p>
<p></p>
<p> <textarea cols="89" rows="15" name="code" class="c-sharp">      /// &lt;summary&gt;
        /// 显示提示信息
        /// &lt;/summary&gt;
        /// &lt;param name="msg"&gt;&lt;/param&gt;
        private void SetViewMsg(string msg)
        {
            if (!Page.ClientScript.IsStartupScriptRegistered("showStatus"))
            {
                Page.ClientScript.RegisterStartupScript(typeof(string), "showStatus", "ExecuteOrDelayUntilScriptLoaded(function() {SP.UI.Notify.addNotification('" + msg + "', false, '', null); }, /"sp.js/");", true);
            }
        }</textarea></p>

你可能感兴趣的:(SharePoint)