上一页 1 2 3 4 5 6 7 ··· 27 下一页
摘要: [转 http://www.cnblogs.com/cean/archive/2009/06/01/1493342.html]在checkLogin.cs里有check方法:public static void check(Page aPage) { if (aPage.Session["ok"] == null || aPage.Session["ok"].ToString() != "ok") { aPage.Response.Redirect("login.aspx"); } }在母版页里调用的正确方法:pr 阅读全文
posted @ 2012-09-18 10:55 小师傅 阅读(236) 评论(0) 推荐(0) 编辑
摘要: 【转http://www.cnblogs.com/vowei/archive/2012/08/29/2661306.html】原文作者:Ambily.rajVisual Studio是可以用于性能测试的工具之一。Visual Studio Test版或Visual Studio 2010旗舰版为自动化测试提供了支持。本文介绍Visual Studio的Web测试功能。介绍对于一个多用户的应用程序,性能是非常重要的。性能不仅是执行的速度,它包括负载和并发方面。性能测试是对以下问题的回答:我们如何确保我们的新的应用程序将支持预期的用户负载?如何避免在实际负载条件下会出现的问题?如何确定响应时间?如 阅读全文
posted @ 2012-09-17 17:01 小师傅 阅读(4908) 评论(0) 推荐(0) 编辑
摘要: If your site collection was created using the Publishing template, then you can use this fix to hide the New Page option from the Site Actions menu:Go to Site Settings - Master Pages and Page LayoutsOpen the Editing Menu folderEdit CustomSiteAction.xmlPaste the following XML into the CustomSiteActio 阅读全文
posted @ 2012-08-29 13:34 小师傅 阅读(182) 评论(0) 推荐(0) 编辑
摘要: This is becoming a pretty common requirement. Some people just don’t want the “Send To” menu appearing in the context menu of the document library. You can do it — customize the SharePoint context menu by — by simply making some modification incore.jsas suggested by many.But modifying SharePoint cor 阅读全文
posted @ 2012-08-21 15:43 小师傅 阅读(200) 评论(0) 推荐(0) 编辑
摘要: 开始- 管理工具-组策略管理器”->林-域- 域名-组策略对象-Default Domain Policy关键一步:在最后一层“Default DomainPolicy ” 上右键 - 编辑 ,可爱的组策略出来了。组策略管理编辑器里,展开 计算机配置 - 策略- Windows设置 - 安全设置 - 帐户策略 - 密码策略,修改即可.要注意末定义和已禁用的区别,这里选择 已禁用。最后强制 刷新 策略gpupdate /force 阅读全文
posted @ 2012-08-15 11:59 小师傅 阅读(793) 评论(0) 推荐(0) 编辑
摘要: var statusId = ''; var notifyId = ''; function AddNotification() { notifyId = SP.UI.Notify.addNotification("Hello World!", true); } function RemoveNotification() { SP.UI.Notify.removeNotification(notifyId); notifyId = ''; } function AddStatus() { statusId = SP.UI.St 阅读全文
posted @ 2012-08-02 17:24 小师傅 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 方法一:个人认为最好的方法.采用的是正则表达式,这是最核心的原理.其次.这个方法使用了JavaScript 的prototype属性其实你不使用这个属性一样可以用函数实现.但这样做后用起来比较方便.下面就来看看这个属性是怎么来用的.返回对象类型原型的引用。objectName.prototypeobjectName 参数是对象的名称。说明用 prototype 属性提供对象的类的一组基本功能。对象的新实例“继承”赋予该对象原型的操作。例如,要为 Array 对象添加返回数组中最大元素值的方法。要完成这一点,声明该函数,将它加入 Array.prototype,并使用它。function arr 阅读全文
posted @ 2012-07-26 16:32 小师傅 阅读(647) 评论(0) 推荐(0) 编辑
摘要: [转http://www.cnblogs.com/xiaoshatian/archive/2012/07/06/2579137.html]SharePoint开发,从某种程度上,也可以认为是Web开发,所以也就不可避免的要使用JavaScript,本文就来介绍SharePoint 2010上的两则JavaScript小技巧。1.禁用Ribbon,保留导航SharePoint 2010在UI上最大的变化就是和Office一致的Ribbon界面,Ribbon虽然有各种好处,但对于有些类型的网站(譬如面向互联网的网站)来说,Ribbon可能一个令人困扰的东西,那么我们怎么去掉Ribbon呢?首先,我 阅读全文
posted @ 2012-07-16 22:10 小师傅 阅读(403) 评论(0) 推荐(0) 编辑
摘要: [转http://www.cnblogs.com/flowman/archive/2012/06/26/2557535.html]一、 环境 SharePoint服务器:sh-fm-app RMS服务器:sh-fm-rms AD服务器:sh-fm-ad 客户端:sh-fm-win7二、 AD域创建帐户 flowman\administrator :SharePoint账号 flowman\adrmsadmin:rms服务器帐户 flowman\user1 :测试只读文档库文档的帐户 flowman\user2 :测试编辑文档库文档的帐户 注意flowman\administr... 阅读全文
posted @ 2012-07-05 15:13 小师傅 阅读(371) 评论(0) 推荐(0) 编辑
摘要: 共收集了四种解决方案不知道哪些方案在你的工程中适用:1 在 page_load 里加上如下代码:string beforeSubmitJS = “\nvar exportRequested = false; \n”; beforeSubmitJS += “var beforeFormSubmitFunction = theForm.onsubmit;\n”; beforeSubmitJS += “theForm.onsubmit = function(){ \n”; beforeSubmitJS += “var returnVal = beforeFormSubmitFunction(); \ 阅读全文
posted @ 2012-06-12 15:08 小师傅 阅读(334) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 27 下一页