01 2011 档案

SharePoint PowerShell Script Set Custom MasterPage Url
摘要:在SharePoint 项目中使用自定义母版页,在部署或者发布项目版本的时候需要设置母版页,使用该脚本可以进行初始化设置。$site = get-spsite(http://server);$web = $site.RootWeb;$web.Files[0].delete();$web.CustomerMasterUrl = "/_catalogs/masterpage/custom.master";$web.update(); 阅读全文

posted @ 2011-01-17 23:28 张大明 阅读(247) 评论(0) 推荐(0)

SharePoint PowerShell Script Use List,Add Field To List ,Create Discussion
摘要://得到List$web = get-spweb(http://dexter-pc:90s);$CustomerList = $web.Lists["Customer"];//给List添加字段$CustomerList.Fields.Add("Customer_Name","Text","false");$CustomerList.update();//给List 添加Item$CustomerItem = $CustomerList.AddItem();$CustomerItem["Customer_Id"] = "10000";$CustomerItem["Customer_Name"] 阅读全文

posted @ 2011-01-17 23:17 张大明 阅读(390) 评论(0) 推荐(0)

SharePoint PowerShell Script Create Document Library,Upload File
摘要://创建文档库$web = get-spweb -Identity http://dexter-pc:90;$listTemplate = [Microsoft.SharePoint.SPListTemplateType]::DocumentLibrary;$web.Lists.Add("Document Name","Document Desc",$listTemplate);//得到文档库$spDocumentLibrary = $web.GetList("Document Name");//更该文档库的Description$spDocumentLibrary.Description = 阅读全文

posted @ 2011-01-17 22:41 张大明 阅读(709) 评论(0) 推荐(0)

MOSS/Sharepoint 如何更改一台已经安装了SharePoint的服务器名称(转)
摘要:第一步:在SharePoint3.0管理中心中修改“替代访问映射”:1、进入SharePoint管理中心2、选择“操作”选项卡3、点击“替代访问映射”链接4、把访问映射链接改变成使用新的服务器名称的URL第二步:用stsadm命令中的renameserver选项:1、进入命令行操作界面(开始菜单---运行---cmd---回车)2、进入目录:C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN3、运行命令:stsadm -o renameserver -newservername newn 阅读全文

posted @ 2011-01-11 22:41 张大明 阅读(193) 评论(0) 推荐(0)

javascript 常用小例子收集
摘要:1.让文字不停地滚动   <MARQUEE>滚动文字</MARQUEE> 2.记录并显示网页的最后修改时间   <script language=Javascript>   document.write("最后更新时间: " + document.lastModified + "")   </script> 3.关闭当前窗口   <a href="/"onClick="javascript:window.close();return false;">关闭窗口</a> 4.5秒后关闭当前页   <script language="Javascript">   <!--   setTimeout( 阅读全文

posted @ 2011-01-10 21:51 张大明 阅读(319) 评论(0) 推荐(0)

SharePoint 站点出现Http 503 错误
摘要:今天上班把域账户的密码修改了,打开站点和管理中心下我一大跳,http 503错误,下我一跳,以为又是IIS崩溃了。最后在同事的帮助下解决了,原因是域账户的密码修改后,SharePoint的安装或者管理员的密码不会同时修改,需要手动更新,更新的命令如下:stsadm -o updatefarmcredentials - userlogin domain\19007390 -password pass@word1,然后重启IIS,一切Ok!在Windows Server 2008中开发SharePoint ,很多时候需要在vs中附加进程进行调试,查看端口号的命令如下:%windir%\system 阅读全文

posted @ 2011-01-05 21:59 张大明 阅读(873) 评论(0) 推荐(0)

JQuery 给基本控件的取值,赋值
摘要:TextBox:var str = $('#txt').val();$('#txt').val("Set Lbl Value");//文本框,文本区域:$("#text_id").attr("value",'');//清空内容 $("#text_id").attr("value",'test');//填充内容 LABLE:var str = $('#lbl').text();$('#lbl').text("Set Lbl Value");/*获取单选按钮的值*/ var valradio = $("input[@type=radio][@checked]").val(); /*获取一组名为( 阅读全文

posted @ 2011-01-03 12:32 张大明 阅读(776) 评论(0) 推荐(0)

导航