摘要:
# Check to ensure Microsoft.SharePoint.PowerShell is loaded$Snapin = get-PSSnapin | Where-Object {$_.Name -eq 'Microsoft.SharePoint.Powershell'}if($Snapin -eq $null){ Write-host "Loading SharePoint Powershell Snapin" Add-PSSnapin "Microsoft.SharePoint.Powershell"}$web = G 阅读全文
摘要:
在ASP.NET的程序中要使用Session对象时,必须确保页面的@page指令中EnableSessionState属性是True或者Readonly,并且在web.config文件中正确的设置了SessionState属性。 ASP.NET中Session的状态保持是由web.config文件中的标记下的标记的mode属性来决定的。该属性有四种可能的值:Off、Inproc、StateServer和SQlServer。 设为Off会禁用Session。 Inproc是缺省的设置,这种模式和以前的ASP的会话状态的方法是类似的,会话的状态会被保存在ASP.NET进程中,它的优点是显而易... 阅读全文
摘要:
anybody can use these code. It's free. class SortAlgorithm { public void BubbleSort(int[] R) { int i, j, temp; bool exchange; for (i = 0; i < R.Length; i++) { exchange = false; for (j = 0; j < R.Length - 1; j+... 阅读全文
摘要:
Setup SSRS in SharePoint Integrated ModeThis post is about configuring SQL Server Reporting Services in SharePoint Integrated mode the quick and clean way with no fuzz in 40 steps.I'm not discussing the default values, I will only talk about the values which need to be changed or selected in... 阅读全文
摘要:
Sharepoint Timerjob: Read the web.config inside a Timer Job There is no way to get a reference to a SPSite or SPWeb object inside a timerjob. So when you want to store configuration values in the web.config of your Web Application, there is no way to get the Web Application's name to open the we 阅读全文
摘要:
SharePoint 2010 CAML List JoinsRATE THISKirk Evans[MSFT]20 Jan 2012 4:26 PM4This post demonstrates how to use the JOIN syntax in CAML.A customer pinged me asking about how to write a JOIN query in CAML. Honestly, I haven’t done this since in a long time, so it took awhile to shake off the cobwebs. I 阅读全文
摘要:
IntroductionBased on my popular articel about Creating Custom Timer Job in Sharepoint 2010,I Have decide to upload the simple code on how to create Custom Timer Job in Sharepoint 2010 ,But first let us know more about Timer JobA timer job runs in a specific Windows service for SharePoint Server.Time 阅读全文
摘要:
DefaultButton - Deal with users hitting ENTER on your forms Developers tend to assume that users will be always clicking on the buttons to submit forms. Is it a valid assumption? Unfortunately not always ... the simplest example can be quick search, a common component on many sites.What if user simp 阅读全文
摘要:
Hello,I am trying to write a custom searchquery using CAML ona list which contains a URL field.The CAML query contains a WHERE clause on the URL field. What I have noticed is that when the URL field is used in the WHERE clause it does not return any results back. Maybe my CAML query is wrong??Any he 阅读全文
摘要:
Editing contents of a WSP(SharePoint)July 7, 2010When deploying a new SharePoint feature for a trial upgrade 2010 environment, I was striking a problem with the contents of the WSP.Inconsequential to this story, there was a SYSTEM.WEB.DLL file within the WSP – and SharePoint 2010 would not allow it 阅读全文