摘要: http://www.directsharepoint.com/2011/11/redirecting-to-custom-user-profile.html1. 建一个empty element<?xml version="1.0" encoding="utf-8"?><Elements xmlns="http://schemas.microsoft.com/sharepoint/"> <!-- set redirect to the new profile page on pages such as 阅读全文
posted @ 2012-11-13 18:26 举重-若轻 阅读(140) 评论(0) 推荐(0)
摘要: em是何物?em指字体高,任意浏览器的默认字体高都是16px。所以未经调整的浏览器都符合: 1em=16px。那么12px=0.75em, 10px=0.625em。为了简化font -size的换算,需要在css中的body选择器中声明Font-size=62.5%,这就使em值变为16px*62.5%=10px, 这样12px=1.2em, 10px=1em, 也就是说只需要将你的原来的px数值除以10,然后换上em作为单位就行了。em有如下特点:1. em的值并不是固定的;2. em会继承父级元素的字体大小。比如两个个DIV,它们的字体大小分别是12px,16px,那么在他们中1em的值 阅读全文
posted @ 2012-11-06 16:42 举重-若轻 阅读(223) 评论(0) 推荐(0)
摘要: delegatedoubleCalculateMethod(doubleDiameter); staticCalculateMethodcalcMethod; doubleresult=0; staticvoidMain(string[]args) { calcMethod=newCalculateMethod(Calculate); calcMethod.BeginInvoke(5,newAsyncCallback(TaskFinished),null); } /// ///线程调用的函数 /// publicstaticdoubleCalcula... 阅读全文
posted @ 2012-10-04 16:18 举重-若轻 阅读(111) 评论(0) 推荐(0)
摘要: 在Asp.NET的Json处理中,通常会遇到使用单引号或其他特殊字符,如果直接使用,会截断Json数据,造成JS错误无法正确运行。其实只要使用Javascript的escape方法编码字符串后就可以解决这个问题。但是在C#代码中怎么解决这个问题呢?我们自然就想到了使用Server.UrlEncode方法来编码数据,可是实践后发现编码后的有些字符在JS中无法被unescape方法还原。其实解决方法很简单,引用Microsoft.JScript程序集后,使用GlobalObject类的escape方法就行了。这个方法作用和Server.UrlEncode类似,但是它相当于是在C#代码里调用了jav 阅读全文
posted @ 2012-09-27 12:58 举重-若轻 阅读(204) 评论(0) 推荐(0)
摘要: /******************分别处理input button和textbox**********************/<style type="text/css">input {width:20px}input {width:expression(this.type=="text"?"200px":"style");}input[type="text"] {width:200px}</style><input type="radio" 阅读全文
posted @ 2012-09-25 21:31 举重-若轻 阅读(146) 评论(0) 推荐(0)
摘要: 利用content type给sharepoint folder加属性:http://blog.mindbusiness.de/blog/2007/05/02/sharepoint-folders-and-metadata/ 阅读全文
posted @ 2012-09-19 14:45 举重-若轻 阅读(131) 评论(0) 推荐(0)
摘要: Server.MapPath方法的应用方法老是忘记Server.MapPath的使用方法了,下面记录一下,以备后用:总注:Server.MapPath获得的路径都是服务器上的物理路径,也就是常说的绝对路径1、Server.MapPath("/")注:获得应用程序根目录所在的位置,如 C:\Inetpub\wwwroot\。2、Server.MapPath("./")注:获得所在页面的当前目录,等价于Server.MapPath("")。3、Server.MapPath("../")注:获得所在页面的上级目录。4、S 阅读全文
posted @ 2012-09-17 18:26 举重-若轻 阅读(122) 评论(0) 推荐(0)
摘要: 首先感谢Hunt. C的资料,本文主要引用了他的内容(http://www.cnblogs.com/hunts/archive/2006/11/20/566694.aspxhttp://www.cnblogs.com/hunts/archive/2006/11/20/566694.html)1. 了解JSONhttp://www.json.org2. 客户端(如web 网页)操作客户端操作就是把字符串处理成一个JSON对象或者进行相反操作,这么做是因为服务器端往客户端传递的是一个字符串,比如:{"Employees":[{"ID":"1&quo 阅读全文
posted @ 2012-09-16 19:20 举重-若轻 阅读(3548) 评论(0) 推荐(0)
摘要: jquery get started:http://www.k99k.com/jQuery_getting_started.htmlhttp://docs.jquery.com/Tutorials:Getting_Started_with_jQuery#Plug_me:_Writing_your_own_pluginsjquery的 的selector:http://docs.jquery.com/DOM/Traversing/Selectors#XPath_SelectorsJSON客户端解释器:https://github.com/douglascrockford/JSON-jsJSON 阅读全文
posted @ 2012-09-12 23:08 举重-若轻 阅读(140) 评论(0) 推荐(0)
摘要: 同理可以更新任何其他信息:$WebUrl = "http://yourwebsiteurl" $OpenWeb = Get-SPWeb $WebUrl $site = new-object Microsoft.SharePoint.SPSite($WebUrl); $ServiceContext = [Microsoft.SharePoint.SPServiceContext]::GetContext($site); #Get UserProfileManager from the My Site Host Site context $ProfileManager = .. 阅读全文
posted @ 2012-09-12 21:28 举重-若轻 阅读(280) 评论(0) 推荐(0)