文章分类 -  sharepoint

FormsAuthentication.SignOut();
摘要:FormsAuthentication.SignOut 方法 从浏览器删除 Forms 身份验证票证。 命名空间:System.Web.Security程序集:System.Web(在 system.web.dll 中) 阅读全文
posted @ 2012-05-15 14:01 染指的浮云 阅读(635) 评论(0) 推荐(0)
SPField和SPFieldMultiChoice的用法
摘要:单选:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> SPFieldChoice s = list.Fields["案例所属"] as SPFieldChoice; foreach (string c in s.Choices) { ddlTo.Items.Add(c); //用于下拉菜单 } 多选: Code Code highlighting produced by Actipro CodeHighlighter ( 阅读全文
posted @ 2012-05-08 13:48 染指的浮云 阅读(521) 评论(0) 推荐(0)
this.Context.Request.Url.Segments
摘要:Segments属性将会返回一个以“/”为分隔的URL数组,这个URL数组同时也是来自absolute path例如:Absolute URIhttp://www.contoso.com/Chapters/Chapter1/Sections/Section1.htmAbsolute path/Chapters/Chapter1/Sections/Section1.htmSegments/Chapters/Chapter1/Sections/Section1.htmAbsolute URIhttp://www.contoso.com/Chapters/Chapter1/Sections/Sect 阅读全文
posted @ 2012-04-11 10:21 染指的浮云 阅读(399) 评论(0) 推荐(0)
SharePoint中DateTimeControl
摘要:<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>js:<script language="javascript">//startvar dtCh= "/"; 阅读全文
posted @ 2012-04-06 15:15 染指的浮云 阅读(2083) 评论(0) 推荐(0)
当webpart出现错误的时候
摘要:如果不知道哪个webpart出错,就在页面网站上写?contents=1,这样就可以看到是哪个webpart出现错误 阅读全文
posted @ 2011-12-12 17:27 染指的浮云 阅读(95) 评论(0) 推荐(0)
请求“System.Data.SqlClient.SqlClientPermission, System.Data, Version=2.0.0.0....类型的权限已失败。”
摘要:请求“System.Data.SqlClient.SqlClientPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089”类型的权限已失败。”解决方法:http://blog.csdn.net/qq546937127/article/details/4305677 阅读全文
posted @ 2011-12-12 17:25 染指的浮云 阅读(441) 评论(0) 推荐(0)
未能提取此解决方案中的 cab 文件。
摘要:解决方案 1)Wsp文件中有文件名是中文乱码,去掉就没事了 2)http://msdn.microsoft.com/zh-cn/library/ee330922.aspx 阅读全文
posted @ 2011-12-12 17:23 染指的浮云 阅读(474) 评论(0) 推荐(0)
sharepoint中库读取字段
摘要:/// <summary> /// 得到图片新闻的类型 /// </summary> /// <returns></returns> public List<string> GetAllTypes() { List<string> listAll = new List<string>(); SPSite site = null; SPWeb web = null; Guid guid = SPContext.Current.Site.ID; try { SPSecurity.RunWithElevatedPri 阅读全文
posted @ 2011-12-12 17:20 染指的浮云 阅读(144) 评论(0) 推荐(0)
部署步骤“激活功能”中出现错误: 无法启动计算机“WS-CHUANM-01”上的服务 SPUserCodeV4。
摘要:解决方案:http://hi.baidu.com/sygwin/blog/item/4cd09e4507679f28869473be.html 阅读全文
posted @ 2011-12-09 17:31 染指的浮云 阅读(271) 评论(0) 推荐(0)