随笔分类 - sharepoint学习
sharepoint学习
摘要:可以直接用SPMetal生成实体,如果需要用到系统本身的可以用XML自己写后生成用系统管理员打开PowerShell 输入SPMetal /web:http://sp2010:8080 /code:D:SPLinq.cs /parameters:D:XMLFile.xml 的命令即可在XML可以这样设置,List对应相应的表名,Column的Name对应相应的英文字段名,MEMBER则对应中文名 <?xml version="1.0" encoding="utf-8" ?> - <Web xmlns="http://schem
阅读全文
摘要:例如:$web=get-SPWeb "http://10.119.10.188"$web.title$list=$web.Lists["公司新闻"]$list.title$items = $list.Items$items | ForEach-Object{ $_["类别"]='公司新闻';$_.Update()}这样就能实现非视图的批量更新了
阅读全文
摘要:上下主题protected void Page_Load(object sender, EventArgs e) { int.TryParse(Request["ID"], out queryID); if (!IsPostBack) { BindData(queryID); } } public void BindData(int ID) { var result = from f in site...
阅读全文
摘要:1、先添加webservice,引用webservice地址如:http://10.119.188.XXX:8080/_vti_bin/UserGroup.asmx2、直接用jquery调用该服务中的其中一个,下面以GetUserCollectionFromGroup为例子,判断某一组里有哪些成员,代码如下:调用webservice 1 <script type="text/javascript"> 2 function myrole() 3 { 4 var soapEnv = '<?xml version="1.0" enco
阅读全文
摘要:1 private static PagedDataSource pds = new PagedDataSource(); 2 protected void Page_Load(object sender, EventArgs e) 3 { 4 if (!Page.IsPostBack) 5 { 6 7 BindData(); 8 } 9 }10 private void BindDat...
阅读全文
摘要:1 protected void btnOnLine_Click(object sender, EventArgs e) 2 { 3 try 4 { 5 6 //更新 7 string loginname; 8 loginname = SPContext.Current.Web.CurrentUser.Name; 9 int query...
阅读全文
摘要:绑定 1 private static PagedDataSource pds = new PagedDataSource(); 2 3 protected void Page_Load(object sender, EventArgs e) 4 { 5 if (!IsPostBack) 6 { 7 BindData(); 8 } 9 }10 private void BindData()11 {1...
阅读全文
摘要:View Code 1 protected void btnsub_Click(object sender, EventArgs e) 2 { 3 try 4 { 5 SPSecurity.RunWithElevatedPrivileges(delegate() 6 //提高权限 7 { 8 SPWeb web = SPContext.Current.Web; 9 ...
阅读全文
摘要:使用SharePoint PowerShell 部署WSPUninstall-SPSolution Cbw_SinopecPortal_WebPart.wsp -AllWebApplicationsRemove-SPSolution Bossini.TWCPWF.Addin.wspAdd-SPSolution D:\TWCPWF\Bossini.TWCPWF.Addin.wspInstall-SPSolution -Identity Bossini.TWCPWF.Addin.wsp -GACDeployment -force -AllWebApplicationsInstall-SPSolut
阅读全文

浙公网安备 33010602011771号