sharepoint零散知识汇总

1.弹出提示信息:

注意:页面上千万不要用到ScriptManager 于UpdatePanl 否则后台输出的脚本在前台不会执行

 

///

/// 显示提示信息 /// /// 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); } }

你可能感兴趣的:(sharepoint,string,function,脚本,null,Sharepoint)