<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>MdP&#039;s MOSS Blog</title>
	<atom:link href="http://vspug.com/mykiep/feed/" rel="self" type="application/rss+xml" />
	<link>http://vspug.com/mykiep</link>
	<description>Just another VSPUG - Virtual SharePoint User Group weblog</description>
	<lastBuildDate>Wed, 16 Apr 2008 15:23:00 +0000</lastBuildDate>
	<generator>http://vspug.com?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>This blog has moved</title>
		<link>http://vspug.com/mykiep/2008/04/16/this-blog-has-moved/</link>
		<comments>http://vspug.com/mykiep/2008/04/16/this-blog-has-moved/#comments</comments>
		<pubDate>Wed, 16 Apr 2008 15:23:00 +0000</pubDate>
		<dc:creator>mdp</dc:creator>
		
		<guid isPermaLink="false"></guid>
		<description><![CDATA[Check out my new blog on SharePoint 2007 on the SharePoint 2007 platform:
http://www.thesug.org/blogs/MOSSMania/default.aspx
For my subscribers, update your readers, here is my new RSS Feed Url:http://www.thesug.org/blogs/MOSSMania/_layouts/listfeed.aspx?List={3f7d7b8a-a822-409c-97ed-d4367160f6d7}
]]></description>
			<content:encoded><![CDATA[<p>Check out my new blog on SharePoint 2007 on the SharePoint 2007 platform:</p>
<p><a href="http://www.thesug.org/blogs/MOSSMania/default.aspx">http://www.thesug.org/blogs/MOSSMania/default.aspx</a></p>
<p>For my subscribers, update your readers, here is my new RSS Feed Url:<br /><a href="http://www.thesug.org/blogs/MOSSMania/_layouts/listfeed.aspx?List={3f7d7b8a-a822-409c-97ed-d4367160f6d7">http://www.thesug.org/blogs/MOSSMania/_layouts/listfeed.aspx?List={3f7d7b8a-a822-409c-97ed-d4367160f6d7</a>}</p>
]]></content:encoded>
			<wfw:commentRss>http://vspug.com/mykiep/2008/04/16/this-blog-has-moved/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MCTS &#8211; Too Many Certifications</title>
		<link>http://vspug.com/mykiep/2007/07/21/mcts-too-many-certifications/</link>
		<comments>http://vspug.com/mykiep/2007/07/21/mcts-too-many-certifications/#comments</comments>
		<pubDate>Sat, 21 Jul 2007 06:33:00 +0000</pubDate>
		<dc:creator>mdp</dc:creator>
		
		<guid isPermaLink="false"></guid>
		<description><![CDATA[Too many certifications is never a bad thing.&#160; I was playing around with Microsoft&#39;s logo builder after Pearson VUE finally got my microsoft profile updated, a month after I passed the tests and I noticed that if I tried to create a logo with all 4 of my&#160;WSS/MOSS certifications, I received an error telling me [...]]]></description>
			<content:encoded><![CDATA[<p>Too many certifications is never a bad thing.&nbsp; I was playing around with Microsoft&#39;s logo builder after Pearson VUE finally got my microsoft profile updated, a month after I passed the tests and I noticed that if I tried to create a logo with all 4 of my&nbsp;WSS/MOSS certifications, I received an error telling me to remove one.&nbsp; I worked hard for all four, so I would want them all displayed.</p>
<p>&nbsp;Microsoft&#39;s site says that &quot;<em>Due to design and branding requirements, a logo may only display up to four or six lines.&quot;</em>&nbsp; If they moved <em><strong>Configuration</strong></em> up, that would allow for two more lines.&nbsp;&nbsp;Also, why is MOSS&nbsp;2007 Application Development on one line and WSS&nbsp;3.0 Application Development is on two lines?&nbsp;</p>
<p><img src="/photos/mkiep/images/3291/original.aspx" border="0" alt="  " /></p>
<p>&nbsp;</p>
<p>On the usage guide page, it does not say that the certifcation list is limited to 4 to 6 lines, but to 4 to 6 certifcation areas:<br />The right side of the bar can accommodate 4-6 certification areas depending upon the credential.&nbsp; I also have other problems with this since when I will go to upgrade my MCAD/MCSD, I will be getting more MCTS certs, which won&#39;t be able to be all listed together.&nbsp; I still think these certifications should have been MSCS (Microsoft Sharepoint Certified Specialist) since MCSS is already taken by Microsoft Certified Security Specialist&nbsp;instead of MCTS.</p>
<p><a href="/photos/mkiep/picture3291.aspx" target="_blank"></a></p>
]]></content:encoded>
			<wfw:commentRss>http://vspug.com/mykiep/2007/07/21/mcts-too-many-certifications/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Overriding the Content Query Web Part</title>
		<link>http://vspug.com/mykiep/2007/06/29/overriding-the-content-query-web-part/</link>
		<comments>http://vspug.com/mykiep/2007/06/29/overriding-the-content-query-web-part/#comments</comments>
		<pubDate>Sat, 30 Jun 2007 04:44:00 +0000</pubDate>
		<dc:creator>mdp</dc:creator>
		
		<guid isPermaLink="false"></guid>
		<description><![CDATA[Out of the box, the content query web part can only get items from one content type, but what happens if you want it to display items from more than one content type?&#160; You don&#39;t have to write a custom web part to do this thanks to Microsoft adding overrides in their content query web [...]]]></description>
			<content:encoded><![CDATA[<p><a href="/photos/mkiep/picture2562.aspx" target="_blank"></a>Out of the box, the content query web part can only get items from one content type, but what happens if you want it to display items from more than one content type?&nbsp; You don&#39;t have to write a custom web part to do this thanks to Microsoft adding overrides in their content query web part.&nbsp; </p>
<p>First, build the CQWP (Content Query Web Part) with everything how you want it, including the query, then you will need to export it to a location on your drive.&nbsp; To export the web part, navigate to the page that contains the web part.&nbsp; Open up the page in edit mode and on that page, click on the edit drop down menu for the web part and click &quot;Export.&quot;</p>
<p><a href="/photos/mkiep/picture2562.aspx" target="_blank"><img src="/photos/mkiep/images/2562/original.aspx" border="0" alt="  " /></a></p>
<p>Save the file locally.&nbsp; Once you have exported the web part as a .webpart file, open it with notepad and edit the ListsOverride property.</p>
<p><a href="/photos/mkiep/picture2564.aspx" target="_blank"><img src="/photos/mkiep/images/2564/original.aspx" border="0" alt="  " /></a></p>
<p>If you want to get everything based on a Generic List (BaseType = 0), you would use the following property:</p>
<p>&nbsp;&lt;property name=&quot;ListsOverride&quot; type=&quot;string&quot;&gt;&lt;![CDATA[ &lt;Lists BaseType=&quot;0&quot;&gt; &lt;/Lists&gt;]]&gt;&lt;/property&gt;</p>
<p><a href="/photos/mkiep/picture2563.aspx" target="_blank"><img src="/photos/mkiep/images/2563/original.aspx" border="0" alt="  " /></a><br />&nbsp;<br />If you want to get everything based on a document library (BaseType = 1), you would use the following property:</p>
<p>&nbsp;&lt;property name=&quot;ListsOverride&quot; type=&quot;string&quot;&gt;&lt;![CDATA[ &lt;Lists BaseType=&quot;1&quot;&gt; &lt;/Lists&gt;]]&gt;&lt;/property&gt;</p>
<p>&nbsp;Once you have finished editting the webpart, save the file.&nbsp; Now we have to import the new .webpart file.&nbsp; To do this, go to &quot;Site Actions&quot; -&gt; &quot;Site Settings&quot; -&gt; &quot;Modify All Site Settings&quot; on the top level site.</p>
<p>&nbsp;Under &quot;Galleries&quot;, click on &quot;Web Parts&quot;.&nbsp; Now click the &quot;Upload&quot; button.</p>
<p><a href="/photos/mkiep/picture2567.aspx" target="_blank"><img src="/photos/mkiep/images/2567/original.aspx" border="0" alt="  " /></a></p>
<p>Click on the &quot;Browse&quot; button and select the .webpart file that you made changes to.</p>
<p><a href="/photos/mkiep/picture2568.aspx" target="_blank"><img src="/photos/mkiep/images/2568/original.aspx" border="0" alt="  " /></a></p>
<p>Now set all of the properties for the webpart&nbsp;and click &quot;OK&quot; when finished.</p>
<p><a href="/photos/mkiep/picture2566.aspx" target="_blank"><img src="/photos/mkiep/images/2566/original.aspx" border="0" alt="  " /></a></p>
<p>Now browse to the page you want to add the web part to.&nbsp; Open up the page in edit mode and in the web part zone where you want to add the web part, click on &quot;Add a web part&quot; and select your new webpart and then click &quot;Add.&quot;</p>
<p><a href="/photos/mkiep/picture2565.aspx" target="_blank"><img src="/photos/mkiep/images/2565/original.aspx" border="0" alt="  " /></a></p>
<p>How to: Customize the Content Query Web Part by using Custom Properties<br /><a href="http://msdn2.microsoft.com/en-us/library/aa981241.aspx">http://msdn2.microsoft.com/en-us/library/aa981241.aspx</a></p>
<p><a href="/photos/mkiep/picture2563.aspx" target="_blank"></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://vspug.com/mykiep/2007/06/29/overriding-the-content-query-web-part/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Development Tools and Techniques for Working with Code in Windows SharePoint Services 3.0</title>
		<link>http://vspug.com/mykiep/2007/06/22/development-tools-and-techniques-for-working-with-code-in-windows-sharepoint-services-3-0/</link>
		<comments>http://vspug.com/mykiep/2007/06/22/development-tools-and-techniques-for-working-with-code-in-windows-sharepoint-services-3-0/#comments</comments>
		<pubDate>Fri, 22 Jun 2007 21:33:00 +0000</pubDate>
		<dc:creator>mdp</dc:creator>
		
		<guid isPermaLink="false"></guid>
		<description><![CDATA[Patrick Tisseghem has posted a two part article on the MSDN library about development tools and techniques for coding in WSS.&#160; These are very great articles and I encourage you to look into them.
&#160;
Development Tools and Techniques for Working with Code in Windows SharePoint Services 3.0 (Part 1 of 2)


Summary: Learn the skills you need [...]]]></description>
			<content:encoded><![CDATA[<div class="title">Patrick Tisseghem has posted a two part article on the MSDN library about development tools and techniques for coding in WSS.&nbsp; These are very great articles and I encourage you to look into them.</div>
<div class="title">&nbsp;</div>
<div class="title"><a href="http://msdn2.microsoft.com/en-us/library/bb530302.aspx">Development Tools and Techniques for Working with Code in Windows SharePoint Services 3.0 (Part 1 of 2)</a></div>
<div id="mainSection">
<div id="mainBody">
<p><b>Summary:</b> Learn the skills you need to develop for Windows SharePoint Services 3.0, about the differences from traditional ASP.NET development, about the required development environment, and the steps to build a Windows SharePoint Services solution with Visual Studio 2005 Extensions for Windows SharePoint Services 3.0. This article is part 1 of 2. (33 printed pages)</p>
<p>Patrick Tisseghem, <a href="http://www.u2u.net/">U2U</a></p>
<p>June 2007</p>
<p><b>Applies to:</b> Windows SharePoint Services 3.0, Visual Studio 2005 Extensions for Windows SharePoint Services 3.0</p>
<p><b>Contents</b> </p>
<ul>
<li>
<p><a href="http://msdn2.microsoft.com/en-us/library/bb530302.aspx#WSSDevToolsTechs_P1_IntrotoDevwithWindowsSharePointServices">Introduction to Developing with Windows SharePoint Services Technology</a> </p>
<li>
<p><a href="http://msdn2.microsoft.com/en-us/library/bb530302.aspx#WSSDevToolsTechs_P1_RequiredDevelopmentSkills">Required Development Skills</a> </p>
<li>
<p><a href="http://msdn2.microsoft.com/en-us/library/bb530302.aspx#WSSDevToolsTechs_P1_MainstreamASPNETApplicationsvsSharePointSites">ASP.NET Applications vs. SharePoint Sites</a> </p>
<li>
<p><a href="http://msdn2.microsoft.com/en-us/library/bb530302.aspx#WSSDevToolsTechs_P1_WhatYouDevforWindowsSharePointServices">What You Develop for Windows SharePoint Services</a> </p>
<li>
<p><a href="http://msdn2.microsoft.com/en-us/library/bb530302.aspx#WSSDevToolsTechs_P1_TheDevelopmentEnvironment">The Development Environment</a> </p>
<li>
<p><a href="http://msdn2.microsoft.com/en-us/library/bb530302.aspx#WSSDevToolsTechs_P1_VisualStudio2005ExtforWindowsSharePointServices">Visual Studio 2005 Extensions for Windows SharePoint Services 3.0</a> </p>
<li>
<p><a href="http://msdn2.microsoft.com/en-us/library/bb530302.aspx#WSSDevToolsTechs_P1_CloserLookWinSharePointServicesSolutions">A Closer Look at Windows SharePoint Services Solutions</a> </p>
<li>
<p><a href="http://msdn2.microsoft.com/en-us/library/bb530302.aspx#WSSDevToolsTechs_P1_AboutAuthor">About the Author</a> </p>
<li>
<p><a href="http://msdn2.microsoft.com/en-us/library/bb530302.aspx#WSSDevToolsTechs_P1_AdditionalResources">Additional Resources</a> </p>
</li>
</ul>
</div>
</div>
<div class="title"><a href="http://msdn2.microsoft.com/en-us/library/bb530301.aspx">Development Tools and Techniques for Working with Code in Windows SharePoint Services 3.0 (Part 2 of 2)</a></div>
<div id="mainSection">
<div id="mainBody">
<p><b>Summary:</b> Explore Windows SharePoint Services solutions, solution architecture, and techniques for creating, deploying, maintaining, and upgrading Windows SharePoint Services solutions. This article is part 2 of 2. (26 printed pages)</p>
<p>Patrick Tisseghem, <a href="http://www.u2u.net/">U2U</a></p>
<p>June 2007</p>
<p><b>Applies to:</b> Windows SharePoint Services 3.0, Visual Studio 2005 Extensions for Windows SharePoint Services 3.0</p>
<p><b>Contents</b> </p>
<ul>
<li>
<p><a href="http://msdn2.microsoft.com/en-us/library/bb530301.aspx#WSSDevToolsTechs_P2_DeployingWSSSolutions">Deploying Windows SharePoint Services Solutions</a> </p>
<li>
<p><a href="http://msdn2.microsoft.com/en-us/library/bb530301.aspx#WSSDevToolsTechs_P2_ManuallyPackWinSharePointServSolution">Manually Packaging a Windows SharePoint Services Solution</a> </p>
<li>
<p><a href="http://msdn2.microsoft.com/en-us/library/bb530301.aspx#WSSDevToolsTechs_P2_CodeAccessSecurityandWebPartSolutions">Code Access Security and Web Part Solutions</a> </p>
<li>
<p><a href="http://msdn2.microsoft.com/en-us/library/bb530301.aspx#WSSDevToolsTechs_P2_ManagingSolutions">Managing Solutions</a> </p>
<li>
<p><a href="http://msdn2.microsoft.com/en-us/library/bb530301.aspx#WSSDevToolsTechs_P2_Conclusion">Conclusion</a> </p>
<li>
<p><a href="http://msdn2.microsoft.com/en-us/library/bb530301.aspx#WSSDevToolsTechs_P2_AboutAuthor">About the Author</a> </p>
<li>
<p><a href="http://msdn2.microsoft.com/en-us/library/bb530301.aspx#WSSDevToolsTechs_P2_AdditionalResources">Additional Resources</a> </p>
</li>
</ul>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://vspug.com/mykiep/2007/06/22/development-tools-and-techniques-for-working-with-code-in-windows-sharepoint-services-3-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SPSiteDataQuery &#8211; The query cannot be completed because the number of lists in the query exceeded the allowable limit</title>
		<link>http://vspug.com/mykiep/2007/06/02/spsitedataquery-the-query-cannot-be-completed-because-the-number-of-lists-in-the-query-exceeded-the-allowable-limit/</link>
		<comments>http://vspug.com/mykiep/2007/06/02/spsitedataquery-the-query-cannot-be-completed-because-the-number-of-lists-in-the-query-exceeded-the-allowable-limit/#comments</comments>
		<pubDate>Sat, 02 Jun 2007 08:46:00 +0000</pubDate>
		<dc:creator>mdp</dc:creator>
		
		<guid isPermaLink="false"></guid>
		<description><![CDATA[Today I learned a hard lesson.&#160; A single letter was causing a big problem for me: The query cannot be completed because the number of lists in the query exceeded the allowable limit. For better results, limit the scope of the query to the current site or list or use a custom column index to [...]]]></description>
			<content:encoded><![CDATA[<p><span style="FONT-FAMILY:&#39;Calibri&#39;,&#39;sans-serif&#39;;"><font>Today I learned a hard lesson.&nbsp; A single letter was causing a big problem for me: </font></span><span style="FONT-FAMILY:&#39;Calibri&#39;,&#39;sans-serif&#39;;mso-fareast-font-family:&#39;Times New Roman&#39;;"><font>The query cannot be completed because the number of lists in the query exceeded the allowable limit. For better results, limit the scope of the query to the current site or list or use a custom column index to help reduce the number of lists.</font></span><strong><span style="FONT-FAMILY:&#39;Calibri&#39;,&#39;sans-serif&#39;;"><font>MaxListsLimit vs MaxListLimit</font></span></strong><b><span style="FONT-FAMILY:&#39;Calibri&#39;,&#39;sans-serif&#39;;"><br /></span></b><span style="FONT-FAMILY:&#39;Calibri&#39;,&#39;sans-serif&#39;;"><br /><font>After a while of researching, I found out that the original example that I had been using for the basis&nbsp;of my SPSiteDataQuery had used MaxListsLimit where MaxListLimit should have been for the Lists property of my SPSiteDataQuery</font></span><span style="FONT-FAMILY:&#39;Calibri&#39;,&#39;sans-serif&#39;;"><font>I was using </font></span></p>
<blockquote><p><span style="FONT-FAMILY:&#39;Calibri&#39;,&#39;sans-serif&#39;;mso-fareast-font-family:&#39;Times New Roman&#39;;"><font>&quot;&lt;Lists BaseType=&#39;1&#39; MaxListsLimit=&#39;0&#39;/&gt;&quot; </font></span></p></blockquote>
<p><span style="FONT-FAMILY:&#39;Calibri&#39;,&#39;sans-serif&#39;;mso-fareast-font-family:&#39;Times New Roman&#39;;"><font>When what I needed was just: </font></span></p>
<blockquote><p><span style="FONT-FAMILY:&#39;Calibri&#39;,&#39;sans-serif&#39;;mso-fareast-font-family:&#39;Times New Roman&#39;;"><font>&quot;&lt;Lists BaseType=&#39;1&#39; MaxListLimit=&#39;0&#39;/&gt;&quot; </font></span></p></blockquote>
<p><span style="FONT-SIZE:12pt;FONT-FAMILY:&#39;Calibri&#39;,&#39;sans-serif&#39;;mso-ansi-language:EN-US;mso-fareast-font-family:&#39;Times New Roman&#39;;mso-bidi-font-family:&#39;Times New Roman&#39;;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;">This made the error go away as it let me search all of the lists in the entire site.&nbsp; Not specifying a MaxListLimit would only search 1000 lists, but seems to throw an error if there are more than 1000 lists, instead of just searching the first 1000 that it finds.&nbsp; I would recommend always using&nbsp;&#39;0&#39; if you are not sure that the client will have less than&nbsp;1000 lists.&nbsp; </span></p>
]]></content:encoded>
			<wfw:commentRss>http://vspug.com/mykiep/2007/06/02/spsitedataquery-the-query-cannot-be-completed-because-the-number-of-lists-in-the-query-exceeded-the-allowable-limit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Building your first AJAX web part</title>
		<link>http://vspug.com/mykiep/2007/05/14/building-your-first-ajax-web-part/</link>
		<comments>http://vspug.com/mykiep/2007/05/14/building-your-first-ajax-web-part/#comments</comments>
		<pubDate>Mon, 14 May 2007 21:39:00 +0000</pubDate>
		<dc:creator>mdp</dc:creator>
		
		<guid isPermaLink="false"></guid>
		<description><![CDATA[

The CodeProject now has an article about building an AJAX web part from scratch that calculates two numbers.&#160; It includes step by step instructions for setting up web.config to support AJAX.

It can be accessed here:
http://www.codeproject.com/useritems/MossAjaxWebPart.asp

&#160;
]]></description>
			<content:encoded><![CDATA[<div class="postsubhead">
<h2><a id="bp____ctl0___RecentPosts___postlist___EntryItems__ctl0_PostTitle" href="/mykiep/archive/2007/05/14/building-your-first-ajax-web-part.aspx"></a></h2>
<p>The CodeProject now has an article about building an AJAX web part from scratch that calculates two numbers.&nbsp; It includes step by step instructions for setting up web.config to support AJAX.</p></div>
<div class="postsub">
<p>It can be accessed here:</p>
<p><a href="http://www.codeproject.com/useritems/MossAjaxWebPart.asp">http://www.codeproject.com/useritems/MossAjaxWebPart.asp</a></p>
</div>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://vspug.com/mykiep/2007/05/14/building-your-first-ajax-web-part/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating an XSLT DataView for a sharepoint list</title>
		<link>http://vspug.com/mykiep/2007/05/14/creating-an-xslt-dataview-for-a-sharepoint-list/</link>
		<comments>http://vspug.com/mykiep/2007/05/14/creating-an-xslt-dataview-for-a-sharepoint-list/#comments</comments>
		<pubDate>Mon, 14 May 2007 21:33:00 +0000</pubDate>
		<dc:creator>mdp</dc:creator>
		
		<guid isPermaLink="false"></guid>
		<description><![CDATA[

Sharepoint Tips and Tricks has posted an article about how to create an XSLT DataView for a sharepoint list to use as a web part.

It can be accessed here:
http://www.sharepoint-tips.com/2007/05/sharepoint-designer-article-2-creating.html

&#160;
]]></description>
			<content:encoded><![CDATA[<div class="postsubhead">
<h2><a id="bp____ctl0___RecentPosts___postlist___EntryItems__ctl1_PostTitle" href="/mykiep/archive/2007/05/14/creating-an-xslt-dataview-for-a-sharepoint-list.aspx"></a></h2>
<p>Sharepoint Tips and Tricks has posted an article about how to create an XSLT DataView for a sharepoint list to use as a web part.</p></div>
<div class="postsub">
<p>It can be accessed here:</p>
<p><a href="http://www.sharepoint-tips.com/2007/05/sharepoint-designer-article-2-creating.html">http://www.sharepoint-tips.com/2007/05/sharepoint-designer-article-2-creating.html</a></p>
</div>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://vspug.com/mykiep/2007/05/14/creating-an-xslt-dataview-for-a-sharepoint-list/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using AND/OR in a SPSiteDataQuery</title>
		<link>http://vspug.com/mykiep/2007/05/10/using-and-or-in-a-spsitedataquery/</link>
		<comments>http://vspug.com/mykiep/2007/05/10/using-and-or-in-a-spsitedataquery/#comments</comments>
		<pubDate>Thu, 10 May 2007 09:55:00 +0000</pubDate>
		<dc:creator>mdp</dc:creator>
		
		<guid isPermaLink="false"></guid>
		<description><![CDATA[A quick note about using AND/OR in a SPSiteDataQuery:You can only have 2 conditions below an AND/OR element in the query.Examples:

Valid:&#60;And&#62;&#160;&#60;Eq&#62;&#60;FieldRef Name=&#8221;Title&#8221;&#62;&#60;Value Type=&#8221;Text&#8221;&#62;Value&#60;/Value&#62;&#60;/Eq&#62;&#160;&#60;Eq&#62;&#60;FieldRef Name=&#8221;ContentType&#8221;&#62;&#60;Value Type=&#8221;Text&#8221;&#62;Product&#60;/Value&#62;&#60;/Eq&#62;&#60;/And&#62;
&#60;Or&#62;&#160;&#60;Eq&#62;&#60;FieldRef Name=&#8221;Title&#8221;&#62;&#60;Value Type=&#8221;Text&#8221;&#62;Value&#60;/Value&#62;&#60;/Eq&#62;&#160;&#60;Eq&#62;&#60;FieldRef Name=&#8221;ContentType&#8221;&#62;&#60;Value Type=&#8221;Text&#8221;&#62;Product&#60;/Value&#62;&#60;/Eq&#62;&#60;/Or&#62;
Invalid:&#60;And&#62;&#160;&#60;Eq&#62;&#60;FieldRef Name=&#8221;Title&#8221;&#62;&#60;Value Type=&#8221;Text&#8221;&#62;Value&#60;/Value&#62;&#60;/Eq&#62;&#160;&#60;Eq&#62;&#60;FieldRef Name=&#8221;ContentType&#8221;&#62;&#60;Value Type=&#8221;Text&#8221;&#62;Product&#60;/Value&#62;&#60;/Eq&#62;&#160;&#60;Eq&#62;&#60;FieldRef Name=&#8221;Field1&#8243;&#62;&#60;Value Type=&#8221;Text&#8221;&#62;Value&#60;/Value&#62;&#60;/Eq&#62;&#60;/And&#62;
&#60;Or&#62;&#160;&#60;Eq&#62;&#60;FieldRef Name=&#8221;Title&#8221;&#62;&#60;Value Type=&#8221;Text&#8221;&#62;Value&#60;/Value&#62;&#60;/Eq&#62;&#160;&#60;Eq&#62;&#60;FieldRef Name=&#8221;ContentType&#8221;&#62;&#60;Value Type=&#8221;Text&#8221;&#62;Product&#60;/Value&#62;&#60;/Eq&#62;&#160;&#60;Eq&#62;&#60;FieldRef Name=&#8221;Field1&#8243;&#62;&#60;Value Type=&#8221;Text&#8221;&#62;Value&#60;/Value&#62;&#60;/Eq&#62;&#60;/Or&#62;
You can wrap AND/OR nodes in other AND/OR&#39;s.&#160; If you need three conditions, you would [...]]]></description>
			<content:encoded><![CDATA[<div class="postsubhead">A quick note about using AND/OR in a SPSiteDataQuery:<br />You can only have 2 conditions below an AND/OR element in the query.<br />Examples:</div>
<div class="postsub">
<p><strong>Valid</strong>:<br />&lt;And&gt;<br />&nbsp;&lt;Eq&gt;&lt;FieldRef Name=&#8221;Title&#8221;&gt;&lt;Value Type=&#8221;Text&#8221;&gt;Value&lt;/Value&gt;&lt;/Eq&gt;<br />&nbsp;&lt;Eq&gt;&lt;FieldRef Name=&#8221;ContentType&#8221;&gt;&lt;Value Type=&#8221;Text&#8221;&gt;Product&lt;/Value&gt;&lt;/Eq&gt;<br />&lt;/And&gt;</p>
<p>&lt;Or&gt;<br />&nbsp;&lt;Eq&gt;&lt;FieldRef Name=&#8221;Title&#8221;&gt;&lt;Value Type=&#8221;Text&#8221;&gt;Value&lt;/Value&gt;&lt;/Eq&gt;<br />&nbsp;&lt;Eq&gt;&lt;FieldRef Name=&#8221;ContentType&#8221;&gt;&lt;Value Type=&#8221;Text&#8221;&gt;Product&lt;/Value&gt;&lt;/Eq&gt;<br />&lt;/Or&gt;</p>
<p><strong>Invalid</strong>:<br />&lt;And&gt;<br />&nbsp;&lt;Eq&gt;&lt;FieldRef Name=&#8221;Title&#8221;&gt;&lt;Value Type=&#8221;Text&#8221;&gt;Value&lt;/Value&gt;&lt;/Eq&gt;<br />&nbsp;&lt;Eq&gt;&lt;FieldRef Name=&#8221;ContentType&#8221;&gt;&lt;Value Type=&#8221;Text&#8221;&gt;Product&lt;/Value&gt;&lt;/Eq&gt;<br />&nbsp;&lt;Eq&gt;&lt;FieldRef Name=&#8221;Field1&#8243;&gt;&lt;Value Type=&#8221;Text&#8221;&gt;Value&lt;/Value&gt;&lt;/Eq&gt;<br />&lt;/And&gt;</p>
<p>&lt;Or&gt;<br />&nbsp;&lt;Eq&gt;&lt;FieldRef Name=&#8221;Title&#8221;&gt;&lt;Value Type=&#8221;Text&#8221;&gt;Value&lt;/Value&gt;&lt;/Eq&gt;<br />&nbsp;&lt;Eq&gt;&lt;FieldRef Name=&#8221;ContentType&#8221;&gt;&lt;Value Type=&#8221;Text&#8221;&gt;Product&lt;/Value&gt;&lt;/Eq&gt;<br />&nbsp;&lt;Eq&gt;&lt;FieldRef Name=&#8221;Field1&#8243;&gt;&lt;Value Type=&#8221;Text&#8221;&gt;Value&lt;/Value&gt;&lt;/Eq&gt;<br />&lt;/Or&gt;</p>
<p>You can wrap AND/OR nodes in other AND/OR&#39;s.&nbsp; If you need three conditions, you would do the following:<br /><strong><br />Valid</strong>:</p>
<p>&lt;And&gt;<br />&nbsp;&lt;And&gt;<br />&nbsp;&nbsp;&lt;Eq&gt;&lt;FieldRef Name=&#8221;Title&#8221;&gt;&lt;Value Type=&#8221;Text&#8221;&gt;Value&lt;/Value&gt;&lt;/Eq&gt;<br />&nbsp;&nbsp;&lt;Eq&gt;&lt;FieldRef Name=&#8221;ContentType&#8221;&gt;&lt;Value Type=&#8221;Text&#8221;&gt;Product&lt;/Value&gt;&lt;/Eq&gt;<br />&nbsp;&lt;/And&gt;<br />&nbsp;&lt;Eq&gt;&lt;FieldRef Name=&#8221;Field1&#8243;&gt;&lt;Value Type=&#8221;Text&#8221;&gt;Value&lt;/Value&gt;&lt;/Eq&gt;<br />&lt;/And&gt;</p>
<p>&lt;Or&gt;<br />&nbsp;&lt;Or&gt;<br />&nbsp;&nbsp;&lt;Eq&gt;&lt;FieldRef Name=&#8221;Title&#8221;&gt;&lt;Value Type=&#8221;Text&#8221;&gt;Value&lt;/Value&gt;&lt;/Eq&gt;<br />&nbsp;&nbsp;&lt;Eq&gt;&lt;FieldRef Name=&#8221;ContentType&#8221;&gt;&lt;Value Type=&#8221;Text&#8221;&gt;Product&lt;/Value&gt;&lt;/Eq&gt;<br />&nbsp;&lt;/Or&gt;<br />&nbsp;&lt;Eq&gt;&lt;FieldRef Name=&#8221;Field1&#8243;&gt;&lt;Value Type=&#8221;Text&#8221;&gt;Value&lt;/Value&gt;&lt;/Eq&gt;<br />&lt;/Or&gt;</p>
<p>If you need more conditions, you need to get creative with your wrapping, but it can be done.</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://vspug.com/mykiep/2007/05/10/using-and-or-in-a-spsitedataquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting an SPListItem by it&#039;s Unique ID</title>
		<link>http://vspug.com/mykiep/2007/05/09/getting-an-splistitem-by-it-s-unique-id/</link>
		<comments>http://vspug.com/mykiep/2007/05/09/getting-an-splistitem-by-it-s-unique-id/#comments</comments>
		<pubDate>Thu, 10 May 2007 02:29:00 +0000</pubDate>
		<dc:creator>mdp</dc:creator>
		
		<guid isPermaLink="false"></guid>
		<description><![CDATA[So you have an item&#39;s Unique ID from the SPListItem.UniqueId property.&#160; How would you go about getting that item?&#160; I haven&#39;t found an easy way to do this through the API without already knowing the ID of the Web and List that it is in.&#160; A way around this is to use the SPSiteDataQuery to [...]]]></description>
			<content:encoded><![CDATA[<div class="postsubhead">So you have an item&#39;s Unique ID from the SPListItem.UniqueId property.&nbsp; How would you go about getting that item?&nbsp; I haven&#39;t found an easy way to do this through the API without already knowing the ID of the Web and List that it is in.&nbsp; A way around this is to use the SPSiteDataQuery to search the entire site for that item.&nbsp; As you will notice, I am running the search inside of the Elevated context to make sure that the item will be returned no matter what permissions the end user has.&nbsp; You will also notice that I am not passing any ViewFields to the SPSiteDataQuery.&nbsp; These are not required as WebID, ListID, and (int)(item)ID are returned automatically.&nbsp; You don&#39;t need to loop through all of the DataRows, since there is only one. </div>
<div class="postsub">
<pre class="csharpcode">     Guid g = {GUID};
     SPSecurity.RunWithElevatedPrivileges(delegate()
     {
         using (SPSite site = new SPSite(SPContext.Current.Site.Url))
         {
             SPSiteDataQuery query = new SPSiteDataQuery();
             query.Webs = &quot;&lt;Webs Scope=&#39;SiteCollection&#39; /&gt;&quot;;
             query.Query = string.Format(&quot;&lt;Where&gt;&lt;Eq&gt;&lt;FieldRef Name=&quot;UniqueId&quot; /&gt;&quot; +
		+ &quot;&lt;Value Type=&quot;Text&quot;&gt;{0}&lt;/Value&gt;&lt;/Eq&gt;&lt;/Where&gt;&quot;, Convert.ToString(g));
             query.RowLimit = 1;

             using (DataTable dt = site.RootWeb.GetSiteData(query))
             {
                 foreach (DataRow dr in dt.Rows)
                 {
                     Guid webId = new Guid(Convert.ToString(dr[&quot;WebID&quot;]));
                     Guid listId = new Guid(Convert.ToString(dr[&quot;ListID&quot;]));
                     using (SPWeb web = site.AllWebs[webId])
                     {
		          SPList list = web.Lists[listId];

		          SPListItem li = null;
		          try
		          {
		              li = list.Items[ g ];
		          }
		          catch { }
		          if (li != null)
		          {
		              // Now you have your item, do what you need to do
		          }
		          list = null;
                     }
                 }
             }
             site.RootWeb.Dispose();
         }
     });
</pre>
</div>
]]></content:encoded>
			<wfw:commentRss>http://vspug.com/mykiep/2007/05/09/getting-an-splistitem-by-it-s-unique-id/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IE7Pro makes IE7 work like a real browser</title>
		<link>http://vspug.com/mykiep/2007/05/09/ie7pro-makes-ie7-work-like-a-real-browser/</link>
		<comments>http://vspug.com/mykiep/2007/05/09/ie7pro-makes-ie7-work-like-a-real-browser/#comments</comments>
		<pubDate>Thu, 10 May 2007 01:47:00 +0000</pubDate>
		<dc:creator>mdp</dc:creator>
		
		<guid isPermaLink="false"></guid>
		<description><![CDATA[
IE7Pro&#160;is a free add-on for IE7 that finally makes up for some of IE7&#39;s flaws.&#160; The biggest fix is the one that when IE7 crashes, which it does often, it will load your pages back in instead of closing, re-opening&#160;and taking you back to your homepage, nice!&#160; The site also says it is compatible with [...]]]></description>
			<content:encoded><![CDATA[<p><h2><a id="bp____ctl0___RecentPosts___postlist___EntryItems__ctl4_PostTitle" href="/mykiep/archive/2007/05/09/ie7pro-makes-ie7-work-like-a-real-browser.aspx"></a></h2>
<p><a href="http://ie7pro.com/">IE7Pro</a>&nbsp;is a free add-on for IE7 that finally makes up for some of IE7&#39;s flaws.&nbsp; The biggest fix is the one that when IE7 crashes, which it does often, it will load your pages back in instead of closing, re-opening&nbsp;and taking you back to your homepage, nice!&nbsp; The site also says it is compatible with IE6. </p>
<div class="postsub">
<p>These are the features listed on their site:</p>
<p><strong>Enhance Internet Explorer&#39;s Tabbed Browsing Capabilities <br /></strong>1. Double click to close tab.<br />2. Open new tab from address bar. <br />3. Enable/disable tab browse history manager. <br />4. Enable/disable crash recovery <br />5. Move the IE menu bar above the address bar <br />6. Hide search bar. <br />7. Modify the maxium number of parallel connections to the web server. <br />8. Select the external program to view page source&nbsp; </p>
<p><strong>AD Blocker </strong><br />Blocks all forms of advertising, including Flash ads, rich media, fly-ins, slide-ins, pop-ups, pop-unders, spyware and adware ads, and messenger ads. </p>
<p><strong>Super Drag and Drop<br /></strong>With &#39;Super Drag and Drop&#39; enabled, you can open new links by simply dragging and dropping the link on the page. You can also Drag and Drop to search selected words with the default search engine or save the selected photo when Shift is held down. </p>
<p><strong>Mouse Gesture </strong><br />Mouse Gesture allow the user to execute commonly performed tasks (open/close a tab, go back, go forward , print , scrolling page etc.) by drawing a simple symbol on the screen. </p>
<p><strong>Crash Recovery </strong><br />Crash Recovery automatically restores all opened pages after a crash happened. </p>
<p><strong>Save Page to Image </strong><br />Flexible and easy-to-use tool that converts html page from any URL to image. It captures the whole web page&#39;s content into JPG, BMP , GIF , PNG or TIFF on the fly. </p>
<p><strong>Quick Proxy Switcher <br /></strong>Different internet connections do often require completely different proxy server settings and it&#39;s a real pain to change them manually. </p>
<p><strong>Greasymonkey alike User Script </strong><br />IE7Pro Script is to Internet Explorer7 as Greasemonkey is to Firefox. It lets you remix the Web via scripts. </p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://vspug.com/mykiep/2007/05/09/ie7pro-makes-ie7-work-like-a-real-browser/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
