<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom"><title type="text">博客园_心利</title><subtitle type="text">常怀恭敬之心</subtitle><id>http://feed.cnblogs.com/blog/u/24299/rss</id><updated>2011-10-24T07:54:19Z</updated><author><name>心利</name><uri>http://www.cnblogs.com/osamede/</uri></author><generator>CNBlogs BlogServer</generator><link rel="alternate" type="text/html" href="http://www.cnblogs.com/osamede/"/><link rel="self" type="application/atom+xml" href="http://feed.cnblogs.com/blog/u/24299/rss"/><entry><id>http://www.cnblogs.com/osamede/archive/2011/10/24/2222363.html</id><title type="text">SharePoint How To:定位错误：“An SPRequest object was not disposed ..&amp;quot;</title><summary type="text">我们的Sharepoint程序有时泄露了很多SPWeb,SPSite对象，SharePoint日志中就会有很多错误信息，如下：   An SPRequest object was not disposed before the end of this thread. To avoid wasting system resources, dispose of this object or its parent (such as an SPSite or SPWeb) as soon as you are done using it. This object will now be disposed. Allocation Id: {5E41622E-AFA6-44E4-AAB3-809A70D39CCA} To determine where this object was allocated, set Microsoft.SharePoint.Administration.SPWebService.ContentService.CollectSPRequestAlloc</summary><published>2011-10-24T02:30:00Z</published><updated>2011-10-24T02:30:00Z</updated><author><name>心利</name><uri>http://www.cnblogs.com/osamede/</uri></author><link rel="alternate" href="http://www.cnblogs.com/osamede/archive/2011/10/24/2222363.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/osamede/archive/2011/10/24/2222363.html"/><content type="html">&lt;p&gt;&lt;span style="font-family: 宋体;"&gt;我们的&lt;/span&gt;Sharepoint&lt;span style="font-family: 宋体;"&gt;程序有时泄露了很多&lt;/span&gt;SPWeb,SPSite&lt;span style="font-family: 宋体;"&gt;对象，&lt;/span&gt;SharePoint&lt;span style="font-family: 宋体;"&gt;日志中就会有很多错误信息，如下：&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;em&gt;An SPRequest object was not disposed before the end of this thread. To avoid wasting system resources, dispose of this object or its parent (such as an SPSite or SPWeb) as soon as you are done using it. This object will now be disposed. Allocation Id: {5E41622E-AFA6-44E4-AAB3-809A70D39CCA} &lt;span style="color: red;"&gt;To determine where this object was allocated, set Microsoft.SharePoint.Administration.SPWebService.ContentService.CollectSPRequestAllocationCallStacks = true&lt;strong&gt;&lt;span style="font-family: 宋体;"&gt;（线索）&lt;/span&gt;.&lt;/strong&gt;&lt;/span&gt;&lt;/em&gt;&lt;span style="font-family: Times New Roman;"&gt;&#xD;
		&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;span style="font-family: 宋体;"&gt;如果您细心地话，您会发现上面日志中提到了一个参数，按照要求设置后就可以看到完整的&lt;/span&gt;&lt;strong&gt;&lt;em&gt;CallStacks&lt;span style="font-family: 宋体;"&gt;。&#xD;
&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;em&gt;An SPRequest object was not disposed before the end of this thread. To avoid wasting system resources, dispose of this object or its parent (such as an SPSite or SPWeb) as soon as you are done using it. This object will now be disposed. Allocation Id: {A635DEED-3786-40C7-BA42-6D3E3CB4571B} This SPRequest was allocated&lt;/em&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;em&gt; at &lt;/em&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;em&gt; at Microsoft.SharePoint.Library.SPRequest..ctor() &lt;/em&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;em&gt; at Microsoft.SharePoint.SPGlobal.CreateSPRequestAndSetIdentity(SPSite site, String name, Boolean bNotGlobalAdminCode, String strUrl, Boolean bNotAddToContext, Byte[] UserToken, String userName, Boolean bIgnoreTokenTimeout, Boolean bAsAnonymous) &lt;/em&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;em&gt; at Microsoft.SharePoint.SPWeb.InitializeSPRequest() &lt;/em&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;em&gt; at Microsoft.SharePoint.SPFieldCollection.EnsureFieldsSafeArray(Boolean bGetFullXML) &lt;/em&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;em&gt; at Microsoft.SharePoint.SPFieldCollection.get_DisplayNameDict() &lt;/em&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;em&gt; at Microsoft.SharePoint.SPFieldCollection.GetFieldByDisplayName(String strDisplayName, Boolean bThrowException) &lt;/em&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;span style="color: red;"&gt;&lt;em&gt; at SharePointBoost.Workflow.Common.WorkflowRepository.GetItems(SPList list, Hashtable condition) &lt;/em&gt;&#xD;
		&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;span style="color: red;"&gt;&lt;em&gt; at SharePointBoost.Workflow.Common.WorkflowRepository.GetWorkflow(String workflowId, VersionType version) &lt;/em&gt;&#xD;
		&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;span style="color: red;"&gt;&lt;em&gt; at SharePointBoost.Workflow.Layouts.ApplicationPages.WorkflowDesigner.CreateWorkflowDesigner(String workflowID, VersionType version) &lt;/em&gt;&#xD;
		&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;em&gt; at SharePointBoost.Workflow.Layouts.ApplicationPages.WorkflowDesigner.Page_Load(Object sender, EventArgs e) &lt;/em&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;em&gt; at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) &lt;/em&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;em&gt; at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) &lt;/em&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;em&gt; at System.Web.UI.Control.OnLoad(EventArgs e) &lt;/em&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;em&gt; at Microsoft.SharePoint.WebControls.UnsecuredLayoutsPageBase.OnLoad(EventArgs e) &lt;/em&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;em&gt; at Microsoft.SharePoint.WebControls.LayoutsPageBase.OnLoad(EventArgs e) &lt;/em&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;em&gt; at System.Web.UI.Control.LoadRecursive() &lt;/em&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;em&gt; at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) &lt;/em&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;em&gt; at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) &lt;/em&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;em&gt; at System.Web.UI.Page.ProcessRequest() &lt;/em&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;em&gt; at System.Web.UI.Page.ProcessRequest(HttpContext context) &lt;/em&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;em&gt; at ASP._layouts_sharepointboost_workflow_workflowdesigner_aspx.ProcessRequest(HttpContext context) &lt;/em&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;em&gt; at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() &lt;/em&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;em&gt; at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&amp;amp; completedSynchronously) &lt;/em&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;em&gt; at System.Web.HttpApplication.PipelineStepManager.ResumeSteps(Exception error) &lt;/em&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;em&gt; at System.Web.HttpApplication.BeginProcessRequestNotification(HttpContext context, AsyncCallback cb) &lt;/em&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;em&gt; at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) &lt;/em&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;em&gt; at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr managedHttpContext, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags) &lt;/em&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;em&gt; at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr managedHttpContext, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags) &lt;/em&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;em&gt; at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr managedHttpContext, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags) &lt;/em&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;em&gt; at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr managedHttpContext, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)&lt;/em&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;span style="font-family: 宋体;"&gt;运行下面的的&lt;/span&gt;Power Shell&lt;span style="font-family: 宋体;"&gt;代码设置&lt;/span&gt;&lt;em&gt;Microsoft.SharePoint.Administration.SPWebService.ContentService.CollectSPRequestAllocationCallStacks&lt;/em&gt;&lt;span style="font-family: 宋体;"&gt;。（如果没用过Power Shell，参考：&lt;/span&gt;http://technet.microsoft.com/en-us/library/ee176949.aspx&lt;span style="font-family: 宋体;"&gt;）&lt;/span&gt;&amp;nbsp;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;/p&gt;&#xD;
&lt;p&gt;Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue&lt;/p&gt;&#xD;
&lt;p&gt;[System.Reflection.Assembly]::LoadFile($Env:CommonProgramFiles+"\Microsoft Shared\Web Server Extensions\14\ISAPI\Microsoft.SharePoint.dll") | out-null&lt;/p&gt;&#xD;
&lt;p&gt;&lt;/p&gt;&#xD;
&lt;p&gt;# Get Content Service of the farm&lt;/p&gt;&#xD;
&lt;p&gt;$contentService = [Microsoft.SharePoint.Administration.SPWebService]::ContentService&lt;/p&gt;&#xD;
&lt;p&gt;&lt;/p&gt;&#xD;
&lt;p&gt;# Display and change the setting of property "CollectSPRequestAllocationCallStacks"&lt;/p&gt;&#xD;
&lt;p&gt;write-host "Current: " $contentService.CollectSPRequestAllocationCallStacks&lt;/p&gt;&#xD;
&lt;p&gt;$contentService.CollectSPRequestAllocationCallStacks = $true&lt;/p&gt;&#xD;
&lt;p&gt;$contentService.Update()&lt;/p&gt;&#xD;
&lt;p&gt;&lt;/p&gt;&#xD;
&lt;p&gt;write-host " New: " $contentService.CollectSPRequestAllocationCallStacks&lt;/p&gt;&#xD;
&lt;p&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;/p&gt;&lt;img src="http://www.cnblogs.com/osamede/aggbug/2222363.html?type=1" width="1" height="1" alt=""/&gt;&lt;p&gt;&lt;a href="http://www.cnblogs.com/osamede/archive/2011/10/24/2222363.html" target="_blank"&gt;本文链接&lt;/a&gt;&lt;/p&gt;</content></entry><entry><id>http://www.cnblogs.com/osamede/archive/2011/09/23/2186525.html</id><title type="text">SharePoint Tips and Tricks --如何用JS向PeopleEditor填充数据</title><summary type="text">有时我们需要在客户端为PeopleEditor控件填充值，但是PeopleEditor控件生成的HTML很复杂,包含一坨乱七八糟的东西。好吧，下面的这个JavaScript函数可以为你做这个（只在SharePoint 2010测试过）。 function setPeoplePicker(pickerid, value) { var field = ...</summary><published>2011-09-23T10:01:00Z</published><updated>2011-09-23T10:01:00Z</updated><author><name>心利</name><uri>http://www.cnblogs.com/osamede/</uri></author><link rel="alternate" href="http://www.cnblogs.com/osamede/archive/2011/09/23/2186525.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/osamede/archive/2011/09/23/2186525.html"/><content type="html">&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:宋体"&gt;有时我们需要在客户端为&lt;/span&gt;PeopleEditor&lt;span style="font-family:宋体"&gt;控件填充值，但是&lt;/span&gt;PeopleEditor&lt;span style="font-family:宋体"&gt;控件生成的&lt;/span&gt;HTML&lt;span style="font-family:宋体"&gt;很复杂&lt;/span&gt;,&lt;span style="font-family:宋体"&gt;包含一坨乱七八糟的东西。好吧，下面的这个&lt;/span&gt;JavaScript&lt;span style="font-family:宋体"&gt;函数可以为你做这个（只在&lt;/span&gt;SharePoint 2010&lt;span style="font-family:宋体"&gt;测试过）。&lt;/span&gt;&lt;span style="font-family:Times New Roman"&gt;&#xD;
		&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Times New Roman; font-size:15pt"&gt;&lt;strong&gt;&#xD;
			&lt;/strong&gt;&lt;span style="color:blue"&gt;function&lt;/span&gt;&lt;strong&gt;&#xD;
			&lt;/strong&gt;setPeoplePicker&lt;strong&gt;(&lt;/strong&gt;pickerid,&lt;strong&gt;&#xD;
			&lt;/strong&gt;value&lt;strong&gt;) {&lt;/strong&gt;&#xD;
		&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Times New Roman; font-size:15pt"&gt;&lt;strong&gt;&#xD;
			&lt;/strong&gt;&lt;span style="color:blue"&gt;var&lt;/span&gt;&lt;strong&gt;&#xD;
			&lt;/strong&gt;field&lt;strong&gt;&#xD;
			&lt;/strong&gt;=&lt;strong&gt;&#xD;
			&lt;/strong&gt;$&lt;strong&gt;(&lt;/strong&gt;&lt;span style="color:maroon"&gt;"#"&lt;/span&gt;&lt;strong&gt;&#xD;
			&lt;/strong&gt;+&lt;strong&gt;&#xD;
			&lt;/strong&gt;pickerid&lt;strong&gt;);&lt;/strong&gt;&#xD;
		&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Times New Roman; font-size:15pt"&gt;&lt;strong&gt;&#xD;
			&lt;/strong&gt;&lt;span style="color:blue"&gt;if&lt;/span&gt;&lt;strong&gt; (&lt;/strong&gt;field&lt;strong&gt;.&lt;/strong&gt;find&lt;strong&gt;(&lt;/strong&gt;&lt;span style="color:maroon"&gt;'.ms-inputuserfield:visible'&lt;/span&gt;&lt;strong&gt;).&lt;/strong&gt;length&lt;strong&gt;&#xD;
			&lt;/strong&gt;&amp;gt;&lt;strong&gt;&#xD;
			&lt;/strong&gt;0&lt;strong&gt;) {&lt;/strong&gt;&#xD;
		&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Times New Roman; font-size:15pt"&gt;&lt;strong&gt;&#xD;
			&lt;/strong&gt;&lt;span style="color:darkgreen"&gt;// IE&lt;/span&gt;&#xD;
		&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Times New Roman; font-size:15pt"&gt;&lt;strong&gt;&#xD;
			&lt;/strong&gt;&lt;span style="color:blue"&gt;var&lt;/span&gt;&lt;strong&gt;&#xD;
			&lt;/strong&gt;userlist&lt;strong&gt;&#xD;
			&lt;/strong&gt;=&lt;strong&gt;&#xD;
			&lt;/strong&gt;field&lt;strong&gt;.&lt;/strong&gt;find&lt;strong&gt;(&lt;/strong&gt;&lt;span style="color:maroon"&gt;'.ms-inputuserfield'&lt;/span&gt;&lt;strong&gt;).&lt;/strong&gt;html&lt;strong&gt;();&lt;/strong&gt;&#xD;
		&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Times New Roman; font-size:15pt"&gt;&lt;strong&gt;&#xD;
			&lt;/strong&gt;field&lt;strong&gt;.&lt;/strong&gt;find&lt;strong&gt;(&lt;/strong&gt;&lt;span style="color:maroon"&gt;'.ms-inputuserfield'&lt;/span&gt;&lt;strong&gt;).&lt;/strong&gt;html&lt;strong&gt;(&lt;/strong&gt;userlist+&lt;span style="color:maroon"&gt;";"&lt;/span&gt;+value&lt;strong&gt;);&lt;/strong&gt;&#xD;
		&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Times New Roman; font-size:15pt"&gt;&lt;strong&gt;&#xD;
			&lt;/strong&gt;field&lt;strong&gt;.&lt;/strong&gt;find&lt;strong&gt;(&lt;/strong&gt;&lt;span style="color:maroon"&gt;'img:first'&lt;/span&gt;&lt;strong&gt;).&lt;/strong&gt;click&lt;strong&gt;();&lt;/strong&gt;&#xD;
		&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Times New Roman; font-size:15pt"&gt;&lt;strong&gt;        } &lt;/strong&gt;&lt;span style="color:blue"&gt;else&lt;/span&gt;&lt;strong&gt; {&lt;/strong&gt;&#xD;
		&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Times New Roman; font-size:15pt"&gt;&lt;strong&gt;&#xD;
			&lt;/strong&gt;&lt;span style="color:darkgreen"&gt;// FF&lt;/span&gt;&#xD;
		&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Times New Roman; font-size:15pt"&gt;&lt;strong&gt;&#xD;
			&lt;/strong&gt;&lt;span style="color:blue"&gt;var&lt;/span&gt;&lt;strong&gt;&#xD;
			&lt;/strong&gt;userlist&lt;strong&gt;&#xD;
			&lt;/strong&gt;=&lt;strong&gt;&#xD;
			&lt;/strong&gt;field&lt;strong&gt;.&lt;/strong&gt;find&lt;strong&gt;(&lt;/strong&gt;&lt;span style="color:maroon"&gt;"textarea:first"&lt;/span&gt;&lt;strong&gt;).&lt;/strong&gt;val&lt;strong&gt;();&lt;/strong&gt;&#xD;
		&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Times New Roman; font-size:15pt"&gt;&lt;strong&gt;&#xD;
			&lt;/strong&gt;field&lt;strong&gt;.&lt;/strong&gt;find&lt;strong&gt;(&lt;/strong&gt;&lt;span style="color:maroon"&gt;"textarea:first"&lt;/span&gt;&lt;strong&gt;).&lt;/strong&gt;val&lt;strong&gt;(&lt;/strong&gt;userlist&lt;strong&gt;&#xD;
			&lt;/strong&gt;+&lt;strong&gt;&#xD;
			&lt;/strong&gt;&lt;span style="color:maroon"&gt;";"&lt;/span&gt;&lt;strong&gt;&#xD;
			&lt;/strong&gt;+&lt;strong&gt;&#xD;
			&lt;/strong&gt;value&lt;strong&gt;);&lt;/strong&gt;&#xD;
		&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Times New Roman; font-size:15pt"&gt;&lt;strong&gt;        }&lt;/strong&gt;&#xD;
		&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Times New Roman; font-size:15pt"&gt;&lt;strong&gt;    }&lt;/strong&gt;&#xD;
		&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Times New Roman; font-size:15pt"&gt;&lt;strong&gt;&#xD;
			&lt;/strong&gt;$&lt;strong&gt;(&lt;/strong&gt;document&lt;strong&gt;).&lt;/strong&gt;ready&lt;strong&gt;(&lt;/strong&gt;&lt;span style="color:blue"&gt;function&lt;/span&gt;&lt;strong&gt; () {&lt;/strong&gt;&#xD;
		&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Times New Roman; font-size:15pt"&gt;&lt;strong&gt;&#xD;
			&lt;/strong&gt;&lt;span style="color:darkgreen"&gt;// setPeoplePicker("&lt;span style="background-color:yellow"&gt;&amp;lt;%&lt;/span&gt;=CPE.ClientID&lt;span style="background-color:yellow"&gt;%&amp;gt;&lt;/span&gt;", "CustomValue");&lt;/span&gt;&#xD;
		&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Times New Roman; font-size:15pt"&gt;&lt;strong&gt;    });&lt;/strong&gt;&#xD;
		&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:宋体"&gt; &#xD;
&lt;/span&gt; &lt;/p&gt;&lt;img src="http://www.cnblogs.com/osamede/aggbug/2186525.html?type=1" width="1" height="1" alt=""/&gt;&lt;p&gt;&lt;a href="http://www.cnblogs.com/osamede/archive/2011/09/23/2186525.html" target="_blank"&gt;本文链接&lt;/a&gt;&lt;/p&gt;</content></entry><entry><id>http://www.cnblogs.com/osamede/archive/2011/09/22/2185262.html</id><title type="text">SharePoint Tips and Tricks -- Ribbon,People Editor</title><summary type="text">SharePoint 的一些小技巧，关于Ribbon,People Editor</summary><published>2011-09-22T08:31:00Z</published><updated>2011-09-22T08:31:00Z</updated><author><name>心利</name><uri>http://www.cnblogs.com/osamede/</uri></author><link rel="alternate" href="http://www.cnblogs.com/osamede/archive/2011/09/22/2185262.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/osamede/archive/2011/09/22/2185262.html"/><content type="html">&lt;p&gt;&lt;span style="color: #17365d; font-size: 16pt;"&gt;&lt;strong&gt;&lt;span style="font-family: 宋体;"&gt;一&lt;/span&gt; Ribbon&lt;/strong&gt;&#xD;
		&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;span style="color: #366092; font-size: 13pt;"&gt;&lt;strong&gt;How To&lt;span style="font-family: 宋体;"&gt;在非"&lt;/span&gt;Application Page&lt;span style="font-family: 宋体;"&gt;"页面上添加&lt;/span&gt;Ribbon Tool Bar?&lt;/strong&gt;&lt;span style="font-family: Times New Roman;"&gt;&#xD;
			&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;span style="font-family: 宋体;"&gt;需要在&lt;/span&gt;Head&lt;span style="font-family: 宋体;"&gt;部分添加&lt;/span&gt;Ribbon&lt;span style="font-family: 宋体;"&gt;控件&lt;/span&gt;&lt;span style="font-family: Times New Roman;"&gt;&#xD;
		&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;span style="color: blue; font-family: Times New Roman; font-size: 15pt;"&gt;&amp;lt;&lt;span style="color: maroon;"&gt;head&lt;/span&gt;&lt;strong&gt; &lt;/strong&gt;&lt;span style="color: red;"&gt;id&lt;span style="color: blue;"&gt;="Head1"&lt;/span&gt;&lt;strong&gt; &lt;/strong&gt;runat&lt;span style="color: blue;"&gt;="server"&amp;gt;&lt;/span&gt;&#xD;
			&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;span style="color: blue; font-family: Times New Roman; font-size: 15pt;"&gt;&amp;lt;&lt;span style="color: maroon;"&gt;SharePoint&lt;span style="color: blue;"&gt;:&lt;span style="color: maroon;"&gt;SPRibbon&lt;/span&gt;&lt;strong&gt; &lt;/strong&gt;&lt;span style="color: red;"&gt;ID&lt;span style="color: blue;"&gt;="SPRibbon2"&lt;/span&gt;&lt;strong&gt; &lt;/strong&gt;runat&lt;span style="color: blue;"&gt;="server"&lt;/span&gt;&lt;strong&gt; &lt;/strong&gt;PlaceholderElementId&lt;span style="color: blue;"&gt;="RibbonContainer"&lt;/span&gt;&lt;strong&gt; &lt;/strong&gt;CssFile&lt;span style="color: blue;"&gt;=""&amp;gt;&lt;/span&gt;&#xD;
					&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;span style="font-family: Times New Roman; font-size: 15pt;"&gt;&lt;strong&gt; &lt;/strong&gt;&lt;span style="color: blue;"&gt;&amp;lt;&lt;span style="color: maroon;"&gt;SharePoint&lt;span style="color: blue;"&gt;:&lt;span style="color: maroon;"&gt;SPRibbonPeripheralContent&lt;/span&gt;&lt;strong&gt; &lt;/strong&gt;&lt;span style="color: red;"&gt;runat&lt;span style="color: blue;"&gt;="server"&lt;/span&gt;&lt;strong&gt; &lt;/strong&gt;Location&lt;span style="color: blue;"&gt;="TabRowRight"&lt;/span&gt;&lt;strong&gt; &lt;/strong&gt;ID&lt;span style="color: blue;"&gt;="SPRibbonPeripheralContent1"&lt;/span&gt;&lt;strong&gt; &lt;/strong&gt;CssClass&lt;span style="color: blue;"&gt;="s4-trc-container s4-notdlg"&lt;/span&gt;&lt;strong&gt; &lt;/strong&gt;&lt;span style="color: blue;"&gt;&amp;gt;&amp;lt;/&lt;span style="color: maroon;"&gt;SharePoint&lt;span style="color: blue;"&gt;:&lt;span style="color: maroon;"&gt;SPRibbonPeripheralContent&lt;span style="color: blue;"&gt;&amp;gt;&lt;/span&gt;&#xD;
										&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;span style="font-family: Times New Roman; font-size: 15pt;"&gt;&lt;strong&gt; &lt;/strong&gt;&lt;span style="color: blue;"&gt;&amp;lt;/&lt;span style="color: maroon;"&gt;SharePoint&lt;span style="color: blue;"&gt;:&lt;span style="color: maroon;"&gt;SPRibbon&lt;span style="color: blue;"&gt;&amp;gt;&lt;/span&gt;&#xD;
						&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;span style="color: #366092; font-size: 13pt;"&gt;&lt;strong&gt;How To &lt;span style="font-family: 宋体;"&gt;在"&lt;/span&gt;Application Page&lt;span style="font-family: 宋体;"&gt;"上添加&lt;/span&gt;Contextual Tab?&lt;/strong&gt;&lt;span style="font-family: Times New Roman;"&gt;&#xD;
			&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;/p&gt;&#xD;
&lt;p&gt;1 &lt;span style="font-family: 宋体;"&gt;为&lt;/span&gt;ContextualGroup&lt;span style="font-family: 宋体;"&gt;添加&lt;/span&gt;Command&lt;span style="font-family: 宋体;"&gt;属性&lt;/span&gt;&lt;span style="font-family: Times New Roman;"&gt;&#xD;
		&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;span style="color: blue; font-family: Times New Roman; font-size: 15pt;"&gt;&amp;lt;&lt;span style="color: #a31515;"&gt;ContextualGroup&lt;span style="color: blue;"&gt;&#xD;
					&lt;span style="color: red;"&gt;Color&lt;span style="color: blue;"&gt;=&lt;/span&gt;"&lt;span style="color: blue;"&gt;Magenta&lt;/span&gt;"&lt;span style="color: blue;"&gt;&#xD;
							&lt;span style="color: red;"&gt;Command&lt;span style="color: blue;"&gt;=&lt;/span&gt;"&lt;span style="color: blue;"&gt;CustomContextualTab.EnableContextualGroup&lt;/span&gt;"&lt;span style="color: blue;"&gt;&#xD;
									&lt;span style="color: red;"&gt;Id&lt;span style="color: blue;"&gt;=&lt;/span&gt;"&lt;span style="color: blue;"&gt;Ribbon.CustomContextualTabGroup&lt;/span&gt;"&lt;/span&gt;&#xD;
								&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;span style="color: blue; font-family: Times New Roman; font-size: 15pt;"&gt;&#xD;
			&lt;span style="color: red;"&gt;Title&lt;span style="color: blue;"&gt;=&lt;/span&gt;"&lt;span style="color: blue;"&gt;Custom Contextual Tab Group&lt;/span&gt;"&lt;/span&gt;&#xD;
		&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;span style="color: blue; font-family: Times New Roman; font-size: 15pt;"&gt;&#xD;
			&lt;span style="color: red;"&gt;Sequence&lt;span style="color: blue;"&gt;=&lt;/span&gt;"&lt;span style="color: blue;"&gt;502&lt;/span&gt;"&lt;/span&gt;&#xD;
		&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;span style="color: blue; font-family: Times New Roman; font-size: 15pt;"&gt;&#xD;
			&lt;span style="color: red;"&gt;ContextualGroupId&lt;span style="color: blue;"&gt;=&lt;/span&gt;"&lt;span style="color: blue;"&gt;CustomContextualTabGroup&lt;/span&gt;"&lt;span style="color: blue;"&gt;&amp;gt;&lt;/span&gt;&#xD;
			&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;/p&gt;&#xD;
&lt;p&gt;2 &lt;span style="font-family: 宋体;"&gt;在您自定义的&lt;a href="http://www.andrewconnell.com/blog/archive/2010/10/11/implementing-page-components-in-the-sharepoint-ribbon.aspx"&gt;&lt;/a&gt;&lt;/span&gt;PageComponent&lt;span style="font-family: 宋体;"&gt;中处理&lt;/span&gt;ContextualGroup&lt;span style="font-family: 宋体;"&gt;相关的&lt;/span&gt;Command.&lt;span style="font-family: Times New Roman;"&gt;&#xD;
		&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;span style="font-family: 宋体;"&gt;例如上文中的&lt;/span&gt;ContextualGroup&lt;span style="font-family: 宋体;"&gt;，您需要在&lt;/span&gt;getGlobalCommands&lt;span style="font-family: 宋体;"&gt;方法返回的命令数组中，包含"&lt;/span&gt;CustomContextualTab.EnableContextualGroup&lt;span style="font-family: 宋体;"&gt;"，并在&lt;/span&gt;canHandleCommand&lt;span style="font-family: 宋体;"&gt;返回&lt;/span&gt;True.&lt;/p&gt;&#xD;
&lt;p&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;span style="color: #17365d; font-size: 16pt;"&gt;&lt;strong&gt;&lt;span style="font-family: 宋体;"&gt;二&lt;/span&gt; People Editor&lt;/strong&gt;&lt;span style="font-family: Times New Roman;"&gt;&#xD;
			&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;span style="color: #366092; font-size: 13pt;"&gt;&lt;strong&gt;How To &lt;span style="font-family: 宋体;"&gt;用&lt;/span&gt;JavaScript&lt;span style="font-family: 宋体;"&gt;为&lt;/span&gt;PeopleEditor&lt;span style="font-family: 宋体;"&gt;控件赋值？&lt;/span&gt;&lt;/strong&gt;&lt;span style="font-family: Times New Roman;"&gt;&#xD;
			&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;span style="font-family: Times New Roman; font-size: 15pt;"&gt;&lt;strong&gt; &lt;/strong&gt;&lt;span style="color: blue;"&gt;function&lt;/span&gt;&lt;strong&gt; &lt;/strong&gt;setPeoplePicker&lt;strong&gt;(&lt;/strong&gt;pickerid,&lt;strong&gt; &lt;/strong&gt;value&lt;strong&gt;) {&lt;/strong&gt;&#xD;
		&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;span style="font-family: Times New Roman; font-size: 15pt;"&gt;&lt;strong&gt; &lt;/strong&gt;&lt;span style="color: blue;"&gt;var&lt;/span&gt;&lt;strong&gt; &lt;/strong&gt;field&lt;strong&gt; &lt;/strong&gt;=&lt;strong&gt; &lt;/strong&gt;$&lt;strong&gt;(&lt;/strong&gt;&lt;span style="color: maroon;"&gt;"#"&lt;/span&gt;&lt;strong&gt; &lt;/strong&gt;+&lt;strong&gt; &lt;/strong&gt;pickerid&lt;strong&gt;);&lt;/strong&gt;&#xD;
		&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;span style="font-family: Times New Roman; font-size: 15pt;"&gt;&lt;strong&gt; &lt;/strong&gt;&lt;span style="color: blue;"&gt;if&lt;/span&gt;&lt;strong&gt; (&lt;/strong&gt;field&lt;strong&gt;.&lt;/strong&gt;find&lt;strong&gt;(&lt;/strong&gt;&lt;span style="color: maroon;"&gt;'.ms-inputuserfield:visible'&lt;/span&gt;&lt;strong&gt;).&lt;/strong&gt;length&lt;strong&gt; &lt;/strong&gt;&amp;gt;&lt;strong&gt; &lt;/strong&gt;0&lt;strong&gt;) {&lt;/strong&gt;&#xD;
		&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;span style="font-family: Times New Roman; font-size: 15pt;"&gt;&lt;strong&gt; &lt;/strong&gt;&lt;span style="color: darkgreen;"&gt;// IE&lt;/span&gt;&#xD;
		&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;span style="font-family: Times New Roman; font-size: 15pt;"&gt;&lt;strong&gt; &lt;/strong&gt;&lt;span style="color: blue;"&gt;var&lt;/span&gt;&lt;strong&gt; &lt;/strong&gt;userlist&lt;strong&gt; &lt;/strong&gt;=&lt;strong&gt; &lt;/strong&gt;field&lt;strong&gt;.&lt;/strong&gt;find&lt;strong&gt;(&lt;/strong&gt;&lt;span style="color: maroon;"&gt;'.ms-inputuserfield'&lt;/span&gt;&lt;strong&gt;).&lt;/strong&gt;html&lt;strong&gt;();&lt;/strong&gt;&#xD;
		&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;span style="font-family: Times New Roman; font-size: 15pt;"&gt;&lt;strong&gt; &lt;/strong&gt;field&lt;strong&gt;.&lt;/strong&gt;find&lt;strong&gt;(&lt;/strong&gt;&lt;span style="color: maroon;"&gt;'.ms-inputuserfield'&lt;/span&gt;&lt;strong&gt;).&lt;/strong&gt;html&lt;strong&gt;(&lt;/strong&gt;userlist+&lt;span style="color: maroon;"&gt;";"&lt;/span&gt;+value&lt;strong&gt;);&lt;/strong&gt;&#xD;
		&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;span style="font-family: Times New Roman; font-size: 15pt;"&gt;&lt;strong&gt; &lt;/strong&gt;field&lt;strong&gt;.&lt;/strong&gt;find&lt;strong&gt;(&lt;/strong&gt;&lt;span style="color: maroon;"&gt;'img:first'&lt;/span&gt;&lt;strong&gt;).&lt;/strong&gt;click&lt;strong&gt;();&lt;/strong&gt;&#xD;
		&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;span style="font-family: Times New Roman; font-size: 15pt;"&gt;&lt;strong&gt; } &lt;/strong&gt;&lt;span style="color: blue;"&gt;else&lt;/span&gt;&lt;strong&gt; {&lt;/strong&gt;&#xD;
		&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;span style="font-family: Times New Roman; font-size: 15pt;"&gt;&lt;strong&gt; &lt;/strong&gt;&lt;span style="color: darkgreen;"&gt;// FF&lt;/span&gt;&#xD;
		&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;span style="font-family: Times New Roman; font-size: 15pt;"&gt;&lt;strong&gt; &lt;/strong&gt;&lt;span style="color: blue;"&gt;var&lt;/span&gt;&lt;strong&gt; &lt;/strong&gt;userlist&lt;strong&gt; &lt;/strong&gt;=&lt;strong&gt; &lt;/strong&gt;field&lt;strong&gt;.&lt;/strong&gt;find&lt;strong&gt;(&lt;/strong&gt;&lt;span style="color: maroon;"&gt;"textarea:first"&lt;/span&gt;&lt;strong&gt;).&lt;/strong&gt;val&lt;strong&gt;();&lt;/strong&gt;&#xD;
		&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;span style="font-family: Times New Roman; font-size: 15pt;"&gt;&lt;strong&gt; &lt;/strong&gt;field&lt;strong&gt;.&lt;/strong&gt;find&lt;strong&gt;(&lt;/strong&gt;&lt;span style="color: maroon;"&gt;"textarea:first"&lt;/span&gt;&lt;strong&gt;).&lt;/strong&gt;val&lt;strong&gt;(&lt;/strong&gt;userlist&lt;strong&gt; &lt;/strong&gt;+&lt;strong&gt; &lt;/strong&gt;&lt;span style="color: maroon;"&gt;";"&lt;/span&gt;&lt;strong&gt; &lt;/strong&gt;+&lt;strong&gt; &lt;/strong&gt;value&lt;strong&gt;);&lt;/strong&gt;&#xD;
		&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;span style="font-family: Times New Roman; font-size: 15pt;"&gt;&lt;strong&gt; }&lt;/strong&gt;&#xD;
		&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;span style="font-family: Times New Roman; font-size: 15pt;"&gt;&lt;strong&gt; }&lt;/strong&gt;&#xD;
		&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;span style="font-family: Times New Roman; font-size: 15pt;"&gt;&lt;strong&gt; &lt;/strong&gt;$&lt;strong&gt;(&lt;/strong&gt;document&lt;strong&gt;).&lt;/strong&gt;ready&lt;strong&gt;(&lt;/strong&gt;&lt;span style="color: blue;"&gt;function&lt;/span&gt;&lt;strong&gt; () {&lt;/strong&gt;&#xD;
		&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;span style="font-family: Times New Roman; font-size: 15pt;"&gt;&lt;strong&gt; &lt;/strong&gt;setPeoplePicker&lt;strong&gt;(&lt;/strong&gt;&lt;span style="color: maroon;"&gt;"&lt;span style="background-color: yellow;"&gt;&amp;lt;%&lt;/span&gt;=MyPeopleEditor.ClientID&lt;span style="background-color: yellow;"&gt;%&amp;gt;&lt;/span&gt;"&lt;/span&gt;,&lt;strong&gt; &lt;/strong&gt;&lt;span style="color: maroon;"&gt;"CustomValue"&lt;/span&gt;&lt;strong&gt;);&lt;/strong&gt;&#xD;
		&lt;/span&gt;&lt;/p&gt;&lt;img src="http://www.cnblogs.com/osamede/aggbug/2185262.html?type=1" width="1" height="1" alt=""/&gt;&lt;p&gt;&lt;a href="http://www.cnblogs.com/osamede/archive/2011/09/22/2185262.html" target="_blank"&gt;本文链接&lt;/a&gt;&lt;/p&gt;</content></entry><entry><id>http://www.cnblogs.com/osamede/archive/2009/07/19/T4_Tutorial.html</id><title type="text">使用T4为数据库自动生成实体类（C#）</title><summary type="text">T4 (Text Template Transformation Toolkit),是Visual Studio 2008中的一个基于模板的代码生成器。本文首先简要介绍如何使用T4，然后使用T4实现一个实体类生成工具。</summary><published>2009-07-19T10:23:00Z</published><updated>2009-07-19T10:23:00Z</updated><author><name>心利</name><uri>http://www.cnblogs.com/osamede/</uri></author><link rel="alternate" href="http://www.cnblogs.com/osamede/archive/2009/07/19/T4_Tutorial.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/osamede/archive/2009/07/19/T4_Tutorial.html"/></entry><entry><id>http://www.cnblogs.com/osamede/archive/2009/06/11/JavaScript_Client_Template.html</id><title type="text">(Tips&amp;amp;Tricks)用客户端模板精简JavaScript代码</title><summary type="text"> 假设你在做一个AJAX-oriented 项目，使用JavaScript访问服务器 ,获取Json 对象，然后操作DOM，将它们显示出来。如果遇到一些复杂的页面，需要获取和展示大量的JSON对象，那该如何处理？为每一个对象单独写一段JavaScript代码创建相应的HTML?那样的话随着JavaScript代码越来越多，页面会变的越来越复杂,而且你不得不通过修改JavaScript代码来改变HTML样式。</summary><published>2009-06-11T08:30:00Z</published><updated>2009-06-11T08:30:00Z</updated><author><name>心利</name><uri>http://www.cnblogs.com/osamede/</uri></author><link rel="alternate" href="http://www.cnblogs.com/osamede/archive/2009/06/11/JavaScript_Client_Template.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/osamede/archive/2009/06/11/JavaScript_Client_Template.html"/></entry><entry><id>http://www.cnblogs.com/osamede/archive/2009/05/21/1486330.html</id><title type="text">(Tips &amp;Tricks）如何为Windows Mobile 创建拨号连接--C#</title><summary type="text">简单介绍在Windows Mobile系统上创建网络连接的2种方法。1， 通过用于更改系统配置的API DMProcessConfigXML。2，创建的拨号连接的操作，其实是创建一个Phone-Book Entries，并将其存入注册表中。Phone-Book Entries包括一组值，例如用户名，密码，phone number ，network protocols等，操作系统使用Phone-Book Entries中的值创建RAS 连接。方法二通过RAS API 创建一个Phone-Book Entries，并在注册表中填入相应的项。</summary><published>2009-05-21T08:45:00Z</published><updated>2009-05-21T08:45:00Z</updated><author><name>心利</name><uri>http://www.cnblogs.com/osamede/</uri></author><link rel="alternate" href="http://www.cnblogs.com/osamede/archive/2009/05/21/1486330.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/osamede/archive/2009/05/21/1486330.html"/></entry><entry><id>http://www.cnblogs.com/osamede/archive/2008/10/28/1321524.html</id><title type="text">System.Xml FAQ Part 1</title><summary type="text">作为一项单独的任务，最近XML小组收到一个问题列表。我们觉得这个列表很有借鉴意义，因为许多用户遇到的困难都是它们导致的。这些问题既有冷僻方法的调用，也有复杂XML的构建，但是我们将注意力集中在了一些真正难以调试的场景。当完成这个任务以后，我们想，应该把它们公布出来。                                           ------译自微软XML团队的博客</summary><published>2008-10-28T09:36:00Z</published><updated>2008-10-28T09:36:00Z</updated><author><name>心利</name><uri>http://www.cnblogs.com/osamede/</uri></author><link rel="alternate" href="http://www.cnblogs.com/osamede/archive/2008/10/28/1321524.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/osamede/archive/2008/10/28/1321524.html"/></entry><entry><id>http://www.cnblogs.com/osamede/archive/2008/10/07/1305416.html</id><title type="text">Windows Ce vs Windows Mobile</title><summary type="text">你可能听说过Windows Mobile平台，或者是Windows Mobile操作系统，它们是什么，与Windows CE到底有什么关系？本文为你回答这个问题。。。。</summary><published>2008-10-07T04:00:00Z</published><updated>2008-10-07T04:00:00Z</updated><author><name>心利</name><uri>http://www.cnblogs.com/osamede/</uri></author><link rel="alternate" href="http://www.cnblogs.com/osamede/archive/2008/10/07/1305416.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/osamede/archive/2008/10/07/1305416.html"/></entry><entry><id>http://www.cnblogs.com/osamede/archive/2008/04/14/1153414.html</id><title type="text">Asp.net程序中生成Excel报表</title><summary type="text">在后台调用excel组件，生成Excel，虽然可以对Excel文件进行完全控制，可以生成任何复杂的格式，但是有个很大的缺点，这种方式会产生很多Excel进程，很难完全清除掉，特别是在出错的时候，可能会使整个服务器崩溃。本文为大家介绍一个C#写的开源组件，并简单说下office2003和以上版本支持的XML格式。</summary><published>2008-04-14T14:22:00Z</published><updated>2008-04-14T14:22:00Z</updated><author><name>心利</name><uri>http://www.cnblogs.com/osamede/</uri></author><link rel="alternate" href="http://www.cnblogs.com/osamede/archive/2008/04/14/1153414.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/osamede/archive/2008/04/14/1153414.html"/></entry><entry><id>http://www.cnblogs.com/osamede/archive/2008/02/22/1077105.html</id><title type="text">My Page StartKit项目概览</title><summary type="text">My Page StartKit是一个很不错的内容管理系统，它把许多Web上流行的应用，比如留言本，新闻列表，文字展示等等，做成一个一个模块，用户可以通过自由组合这些模块，来创建满足自己要求的网站。虽然现在可以使用的模块还比较少，组合方式也比较单调，但这种创意很有意思。想想如果可以让用户所见即所得的通过选择选择功能，选择选择外表，就能创建编辑自己的网站，有哪个公司还会想不开，花钱找人做个简单的主页？想想每年有多少公司花多少钱用于建设一些展示性的网站！</summary><published>2008-02-22T01:21:00Z</published><updated>2008-02-22T01:21:00Z</updated><author><name>心利</name><uri>http://www.cnblogs.com/osamede/</uri></author><link rel="alternate" href="http://www.cnblogs.com/osamede/archive/2008/02/22/1077105.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/osamede/archive/2008/02/22/1077105.html"/></entry></feed>
