摘要:
try { using (SPLongOperation operation = new SPLongOperation(this.Page)) { operation.LeadingHTML = "Please wait while the operation runs"; operation.TrailingHTML = ""; operation.Begin(); ... 阅读全文
摘要:
生成 linq to sharepoint 对象模型cd $(ProjectDir)set path=%path%;C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\BINspmetal.exe /web:http://sh-fm-dyl:8000 /namespace:webparttools.VsTools /code:SPLinq.cssharepoint 母板页位符的Name 描述PlaceHolderAdditionalPageHead 需要写在页面标签里的附加内容,如引用的脚本或样式文件P 阅读全文
摘要:
当网站功能已存在Feature时,需要强行部署wsppowershellstsadm-odeploysolution-namexxx.wsp-urlhttp://www -awf-immediate-allowGacDeployment-force 阅读全文
摘要:
#region 获取当前页的列表中的栏 public List GetPageList(string listname) { SPList spList = SPContext.Current.Web.Lists[listname]; Id = spList.ID; ListName = listname; List typeList = new List(); SPSecurity.RunWithElevatedPrivileges(delegate ... 阅读全文
摘要:
using Microsoft.Office.InfoPath;using System;using System.Xml;using System.Xml.XPath;using Microsoft.SharePoint;using Microsoft.SharePoint.Workflow;using System.Web;namespace 表单109{ public partial class FormCode { // 启用浏览器功能的表单不支持成员变量。 // 请使用代码从 FormState 词典 // 写入和读取这些值,如下... 阅读全文
摘要:
1.this.Close(); 只是关闭当前窗口,若不是主窗体的话,是无法退出程序的,另外若有托管线程(非主线程),也无法干净地退出;2.Application.Exit(); 强制所有消息中止,退出所有的窗体,但是若有托管线程(非主线程),也无法干净地退出;3.Application.ExitThread(); 强制中止调用线程上的所有消息,同样面临其它线程无法正确退出的问题;4.System.Environment.Exit(0); 这是最彻底的退出方式,不管什么线程都被强制退出,把程序结束的很干净。 阅读全文
摘要:
using (SPSite site = new SPSite(siteUrl)) { using (SPWeb web = site.OpenWeb(new Guid(webId))) { HttpRequest request = new HttpRequest("", web.Url, ""); HttpContext.Current = new HttpContext(request, new HttpResponse(T... 阅读全文
摘要:
直接修改SharePoint 数据库 更改用户信息,要修改两个表update UserInfo set tp_Email='' where tp_Login='domain\test' select * from AllUserData where tp_ListId=(select tp_ID from AllLists where tp_Title='User Information List')update AllUserData set nvarchar4='‘ where tp_ListId=(select tp_ID from 阅读全文
摘要:
1、TextBox与Slider数据双向绑定 <TextBox HorizontalAlignment="Left" Margin="155,154,0,0" TextWrapping="Wrap" Text="{Binding Value,Mode=TwoWay,ElementName=slider1}" VerticalAlignment="Top" Height="38" Width="217"/> <Slider x:Name=& 阅读全文
摘要:
----方法1:WITH UserInfos AS(select *,row_number() over(order by user_id) as RowNumberfrom user_info)select *from UserInfoswhere RowNumber between 21 and 30----方法2:select * from(select *,row_number() over(order by user_id desc) as RowNumberfrom user_info) Awhere RowNumber between 21 and 30 阅读全文