<?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>Ben There, Done That &#187; Development</title>
	<atom:link href="http://www.benstegink.com/category/development/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.benstegink.com</link>
	<description>Another SharePoint Blog about where I've been and what I've done</description>
	<lastBuildDate>Thu, 19 May 2011 02:40:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Check User Permissions on a SharePoint Site using C#</title>
		<link>http://www.sharepointben.com/blog/Lists/Posts/Post.aspx?ID=406</link>
		<comments>http://www.sharepointben.com/blog/Lists/Posts/Post.aspx?ID=406#comments</comments>
		<pubDate>Wed, 08 Dec 2010 15:20:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[SharePoint 2007]]></category>
		<category><![CDATA[Web Parts]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Navigation]]></category>
		<category><![CDATA[SharePoint]]></category>

		<guid isPermaLink="false">http://www.benstegink.com/2010/12/08/check-user-permissions-on-a-sharepoint-site-using-c/</guid>
		<description><![CDATA[Another SharePoint 2007 development post from the non developer, so feel free to offer any suggestions and comments around my code as I’m still learning.&#160; I know, I should be doing this on SharePoint 2010.&#160; Trust me, I’m trying to get us there. Anyways, a brief background on what I’m trying to accomplish. I’m working [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.sharepointben.com%2Fblog%2FLists%2FPosts%2FPost.aspx%3FID%3D406"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.sharepointben.com%2Fblog%2FLists%2FPosts%2FPost.aspx%3FID%3D406&amp;source=bstegink&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Another SharePoint 2007 development post from the non developer, so feel free to offer any suggestions and comments around my code as I’m still learning.&#160; I know, I should be doing this on SharePoint 2010.&#160; Trust me, I’m trying to get us there.</p>
<p>Anyways, a brief background on what I’m trying to accomplish. I’m working on a navigation solution for our current intranet that queries a list of SharePoint sites that have been requested, approved and created via our site request process.&#160; The query results are then filter based on if the current user has access to the site.&#160; This list contains variety of sites, site collections and sub-sites that are spread out across 3 different web applications.&#160; The solution then displays those sites in a web part for users to have “quick access” to their collaboration sites.&#160; It’s basically a way to provide navigation (contained in a web part) across site collections and web applications automatically off a list of sites.</p>
<p>In order to check for access I decided to use the DoesUserHavePermissions() function.&#160; However, after writing this function:</p>
<pre class="code"><span style="color: blue">private bool </span>UserAccessToSite(<span style="color: #2b91af">String </span>user, <span style="color: #2b91af">SPWeb </span>testWeb, <span style="color: #2b91af">SPSite </span>testSite){
    <span style="color: blue">bool </span>access = <span style="color: blue">false</span>;
    <span style="color: blue">try</span>{
        access = testWeb.DoesUserHavePermissions(user, <span style="color: #2b91af">SPBasePermissions</span>.EmptyMask);
        <span style="color: blue">return </span>access;
    }
    <span style="color: blue">catch</span>{
        access = <span style="color: blue">false</span>;
        <span style="color: blue">return </span>access;
    }
}</pre>
<p>I was getting the following error stating that the “List does not exist”</p>
<p><a href="http://www.benstegink.com/wp-content/uploads/2010/12/image.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; margin: ; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.benstegink.com/wp-content/uploads/2010/12/image_thumb.png" width="600" height="103" /></a></p>
<p>I tried a variety of different approaches just to get it to return false if the user has Access Denied to the site.&#160; After a bunch of different tries and some searching online, I ran across <a href="http://blog.krichie.com/2007/10/25/when-spwebdoesuserhavepermissions-spwebdoesnotwork-true/" target="_blank">this post</a> by Krichie that solved the problem for me.</p>
<p>Right before checking DoesUserHavePermissions I had to add the line SPSite.CatchAccessDeneidExceptoin=false;</p>
<p>So, the final code that is now working is:</p>
<pre class="code"><span style="color: blue">private bool </span>UserAccessToSite(<span style="color: #2b91af">String </span>user, <span style="color: #2b91af">SPWeb </span>testWeb, <span style="color: #2b91af">SPSite </span>testSite){
    <span style="color: blue">bool </span>access = <span style="color: blue">false</span>;
    <span style="color: blue">try</span>{
        testSite.CatchAccessDeniedException = <span style="color: blue">false</span>;
        access = testWeb.DoesUserHavePermissions(user, <span style="color: #2b91af">SPBasePermissions</span>.EmptyMask);
        <span style="color: blue">return </span>access;
    }
    <span style="color: blue">catch</span>{
        access = <span style="color: blue">false</span>;
        <span style="color: blue">return </span>access;
    }
}</pre>
<p>My web part is now configured in order to query the list and only return a link to a SharePoint site if the user currently logged into SharePoint has access to that site.&#160; I still have some work to do on the web part and the rest of the solution, so as I continue this adventure I’ll try to post any other updates.&#160; Who knows, maybe once I finish it I’ll even post the whole solution up here.</p>
<p>Again, feel free to correct my code or offer other suggestions as I continue to delve into the SharePoint development space.</p>
<!-- AdSense Now! Redux V1.80 -->
<!-- Post[count: 2] -->
<div class="adsense adsense-leadout" style="text-align:center;margin: 12px;"><script type="text/javascript"><!--
google_ad_client = "pub-6672311120604391";
/* 234x60, created 6/24/10 */
google_ad_slot = "7863309956";
google_ad_width = 234;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>]]></content:encoded>
			<wfw:commentRss>http://www.sharepointben.com/blog/Lists/Posts/Post.aspx?ID=406/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Upcoming Events Web Part</title>
		<link>http://www.sharepointben.com/blog/Lists/Posts/Post.aspx?ID=414</link>
		<comments>http://www.sharepointben.com/blog/Lists/Posts/Post.aspx?ID=414#comments</comments>
		<pubDate>Tue, 28 Sep 2010 14:54:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[SharePoint 2007]]></category>
		<category><![CDATA[Web Parts]]></category>
		<category><![CDATA[MOSS]]></category>
		<category><![CDATA[UpcomingEventsWebPart]]></category>

		<guid isPermaLink="false">http://www.benstegink.com/?p=426</guid>
		<description><![CDATA[I’ve actually done it, a SharePoint Administrator writing a web part.&#160; Granted this web part is in it’s earliest stages, but it performs the task I needed it to. So, what does it do? It’s a very simple SharePoint 2007 web part (So far I have only tested it on MOSS 2007 Standard Edition) that [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.sharepointben.com%2Fblog%2FLists%2FPosts%2FPost.aspx%3FID%3D414"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.sharepointben.com%2Fblog%2FLists%2FPosts%2FPost.aspx%3FID%3D414&amp;source=bstegink&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>I’ve actually done it, a SharePoint Administrator writing a web part.&#160; Granted this web part is in it’s earliest stages, but it performs the task I needed it to.</p>
<p>So, what does it do? It’s a very simple SharePoint 2007 web part (So far I have only tested it on MOSS 2007 Standard Edition) that takes a URL (must be absolute at this point in time) and the name of a SharePoint Calendar list and displays the events on the calendar for the given week.&#160; It can be placed on any page or site within your web application and query a calendar on any other site.</p>
<p>Also, the key issue that got me writing this web part is that is correctly handles recurring appointments on your SharePoint calendar.&#160; If you have recurring appointments, this web part will show the correct start and end time for ONLY the recurring event in the current week rather than the end date for the last recurring appointment.&#160; Here is a screen shot displaying the web part returning a variety of different events scheduled in the same week.</p>
<p><a href="http://www.benstegink.com/wp-content/uploads/2010/09/image.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; margin: ; padding-left: 0px; padding-right: 0px; display: block; float: none; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.benstegink.com/wp-content/uploads/2010/09/image_thumb.png" width="317" height="210" /></a></p>
<p>Granted, it’s nothing fancy, but for me it was a big deal coming from a SharePoint Administrator background.&#160; There are also lots of bugs to it and errors that aren’t properly handled.&#160; But, it’s a start.</p>
<p>If you want to play with the web part, you can download the solution file below.&#160; Just remember, it’s free, it’s my first real web part and there are definitely several bugs.&#160; So, if you choose to try it out:</p>
<p>1.&#160; Don’t complain about it not working the way you want or about bugs…remember it’s FREE.&#160; </p>
<p>2.&#160; If you do find a bug or have suggestions to improve it, I welcome the comments and suggests and we’ll see what I can do as time allows.</p>
<p>3.&#160; There is no warranty, guarantee, etc, etc…pretty much, I’m providing it free as is.&#160; If you choose to install it in your farm that is your choice and your responsibility.&#160; By downloading this web part you are agreeing not to hold me responsible for any negative effect or impact it has on your SharePoint environment.&#160; Again, if it does something weird, feel free to let me know and I’ll do my best to help you, but there are no guarantees.</p>
<p>If you still choose to try the web part you can download it <a href="http://www.benstegink.com/webparts/UpcomingEventsWebPart.wsp" target="_blank">here</a>.&#160; To install and use the web part:</p>
<p>1.&#160; Download the .wsp file</p>
<p>2.&#160; Add the solution to your farm</p>
<p>3.&#160; Deploy the solution</p>
<p>4.&#160; Activate the Site Collection Feature “Upcoming Events Web Part”</p>
<p>5.&#160; Add the web part to your page</p>
<p>6.&#160; Open the Web Part Properties and in the respective boxes enter an Absolute URL for the page where your Calendar List is located as well as the Calendar Name.</p>
<p>7.&#160; Click OK.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sharepointben.com/blog/Lists/Posts/Post.aspx?ID=414/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Custom SharePoint .ASPX form&#8211;&#8220;Could Not Load Type&#8221;</title>
		<link>http://www.sharepointben.com/blog/Lists/Posts/Post.aspx?ID=419</link>
		<comments>http://www.sharepointben.com/blog/Lists/Posts/Post.aspx?ID=419#comments</comments>
		<pubDate>Thu, 08 Jul 2010 19:08:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[SharePoint 2007]]></category>
		<category><![CDATA[.aspx]]></category>
		<category><![CDATA[Forms]]></category>
		<category><![CDATA[Visual Studio 2008]]></category>

		<guid isPermaLink="false">http://www.benstegink.com/2010/07/08/custom-sharepoint-aspx-formcould-not-load-type/</guid>
		<description><![CDATA[This is starting to get dangerous…I’m blogging about SharePoint development twice in a row.&#160; Again, this may be something very basic to most SharePoint developers, but as I learn, I enjoy blogging about issues I’ve discovered and things I’ve learned as I continue to develop more. My next venture into SharePoint development is to create [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.sharepointben.com%2Fblog%2FLists%2FPosts%2FPost.aspx%3FID%3D419"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.sharepointben.com%2Fblog%2FLists%2FPosts%2FPost.aspx%3FID%3D419&amp;source=bstegink&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>This is starting to get dangerous…I’m blogging about SharePoint development twice in a row.&#160; Again, this may be something very basic to most SharePoint developers, but as I learn, I enjoy blogging about issues I’ve discovered and things I’ve learned as I continue to develop more.</p>
<p>My next venture into SharePoint development is to create some custom .ASPX forms for use within our SharePoint environment.&#160; For our situation, InfoPath Forms Services would make much more sense, unfortunately, we only have SharePoint 2007 Standard with no plans to go to Enterprise.</p>
<p>So, I created a very basic .ASPX file with an equally as simple .cs (code behind file), packaged it all up as solution and deployed it.&#160; However, when I went to access the site, I encounter a “Could Not Load Type…” error.&#160; After a quick search on Google, I found &#8211; <a href="http://blogs.catapultsystems.com/matthew/archive/2007/12/07/could-not-load-type-error.aspx">http://blogs.catapultsystems.com/matthew/archive/2007/12/07/could-not-load-type-error.aspx</a> between that post and the post by Andrew Connell that was referenced there I was able to solve my problem.</p>
<p>When I had created my .aspx file I had failed to use the “5 part name” to reference the assembly file.&#160; I had put Inherits=”NewForm.NewForm” rather than Inherits=”NewForm.NewForm, NewForm, Version=1.0.0.0, Culture=neutral, PublicKeyToken=*********”</p>
<p>As soon as I changed my .aspx file to use the 5 part name and redeployed my solution everything worked perfectly!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sharepointben.com/blog/Lists/Posts/Post.aspx?ID=419/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Reset Search Index &#8211; SharePoint Timer Job</title>
		<link>http://www.sharepointben.com/blog/Lists/Posts/Post.aspx?ID=420</link>
		<comments>http://www.sharepointben.com/blog/Lists/Posts/Post.aspx?ID=420#comments</comments>
		<pubDate>Thu, 08 Jul 2010 01:54:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Search]]></category>
		<category><![CDATA[SharePoint 2007]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Timer Job]]></category>

		<guid isPermaLink="false">http://www.benstegink.com/2010/07/07/reset-search-index-sharepoint-timer-job/</guid>
		<description><![CDATA[We have been having an issue with our search indexing and crawling in one of our SharePoint farms.&#160; The problem is that after an undetermined set of time, pretty much all search queries wind up returning several results that show nothing but an IE icon.&#160; The result isn’t attached or any page or give any [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.sharepointben.com%2Fblog%2FLists%2FPosts%2FPost.aspx%3FID%3D420"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.sharepointben.com%2Fblog%2FLists%2FPosts%2FPost.aspx%3FID%3D420&amp;source=bstegink&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>We have been having an issue with our search indexing and crawling in one of our SharePoint farms.&#160; The problem is that after an undetermined set of time, pretty much all search queries wind up returning several results that show nothing but an IE icon.&#160; The result isn’t attached or any page or give any textual information.&#160; Obviously best case would be to figure out what causes this error, but at this point in time we haven’t been able to find the problem.</p>
<p>However, what we have discovered is that simply resetting the search index and running a full crawl will solve the issue.</p>
<p>So…until we can solve the issues, I wrote a small SharePoint timer job that simply resets our search index right before a scheduled full crawl runs.&#160; I used Andrew Connell’s post (<a href="http://www.andrewconnell.com/blog/articles/CreatingCustomSharePointTimerJobs.aspx">http://www.andrewconnell.com/blog/articles/CreatingCustomSharePointTimerJobs.aspx</a>) to develop the Timer Job, Solution and Feature and modified it and was able to find the following code on <a href="http://www.sharepointdev.net/sharepoint--development-programming/programmatically-reset-all-crawled-content-41959.shtml">http://www.sharepointdev.net/sharepoint&#8211;development-programming/programmatically-reset-all-crawled-content-41959.shtml</a> that I inserted into the timer job frame work in order to automatically reset our index on a regular schedule to minimize the risk of our search issue effecting the end users.</p>
<pre class="code"><span style="color: blue">try
</span>{
    <span style="color: #2b91af">SearchContext </span>sc = <span style="color: #2b91af">SearchContext</span>.GetContext(ServerContext.Default);
    sc.Reset(<span style="color: blue">true</span>);
}
<span style="color: blue">catch </span>(<span style="color: #2b91af">Exception </span>ex)
{
    <span style="color: blue">throw new </span><span style="color: #2b91af">InvalidOperationException</span>(<span style="color: #a31515">&quot;Unable to reset content index.&quot;</span>, ex);
}</pre>
<p>For some of you, this may not seem like much, but coming from the SharePoint Administration/Configuration side of SharePoint and having very little real development experience I was rather proud of myself.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sharepointben.com/blog/Lists/Posts/Post.aspx?ID=420/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SharePoint Memory Leak</title>
		<link>http://www.sharepointben.com/blog/Lists/Posts/Post.aspx?ID=429</link>
		<comments>http://www.sharepointben.com/blog/Lists/Posts/Post.aspx?ID=429#comments</comments>
		<pubDate>Mon, 15 Feb 2010 17:27:21 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[Customizations]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[SharePoint 2007]]></category>
		<category><![CDATA[Errors]]></category>
		<category><![CDATA[Memory Leak]]></category>

		<guid isPermaLink="false">http://www.benstegink.com/2010/02/15/sharepoint-memory-leak/</guid>
		<description><![CDATA[As discovered by Todd Carter there is a memory leak in SharePoint 2007.&#160; He has outlined the details as well as a work around to the fix the memory leak. I decided to do some testing with it, however, when I compiled the dll, placed it into the GAC, and changed my global.asax file, I [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.sharepointben.com%2Fblog%2FLists%2FPosts%2FPost.aspx%3FID%3D429"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.sharepointben.com%2Fblog%2FLists%2FPosts%2FPost.aspx%3FID%3D429&amp;source=bstegink&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>As discovered by <a href="http://todd-carter.com">Todd Carter</a> there is a memory leak in SharePoint 2007.&#160; He has outlined the details as well as a <a href="http://todd-carter.com/post/2010/02/08/SharePointe28099s-Sasquatch-Memory-Leak.aspx">work around to the fix the memory leak</a>.</p>
<p>I decided to do some testing with it, however, when I compiled the dll, placed it into the GAC, and changed my global.asax file, I started getting this error: “Could not load file or assembly ‘[Assembly Name]’ or one of its dependencies.&#160; The system cannot find the file specified.”</p>
<p>After digging into this error for a while I discovered my problem.&#160; This may be fairly obvious to developers out there <img src='http://www.benstegink.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> , but coming at this from more of a SharePoint administrator type roll, I missed this one step that isn’t outlined in the steps provided by Todd.</p>
<p>After deploying your dll to the GAC, you need to open up your web.config and place </p>
<p>&lt;add assembly=&quot;[Assembly Name], Version=[Version Number], Culture=neutral, PublicKeyToken=[Public Key Token]&quot; /&gt;</p>
<p>in the web.config file of the web application you wish to apply your fix to.&#160; This line should be added between &lt;assemblies&gt; and &lt;/assemblies&gt; in the web.config file.</p>
<p>All of the information: Assembly Name, Version Number and the Public Key Token can be found by right clicking on your dll in the GAC and viewing the properties of the dll.</p>
<p>Once I added the assembly to my web.config for the web applications I was trying to apply the fix to, everything worked as expected.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sharepointben.com/blog/Lists/Posts/Post.aspx?ID=429/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Hide Web Part Headers with SharePoint 2010</title>
		<link>http://www.sharepointben.com/blog/Lists/Posts/Post.aspx?ID=430</link>
		<comments>http://www.sharepointben.com/blog/Lists/Posts/Post.aspx?ID=430#comments</comments>
		<pubDate>Tue, 02 Feb 2010 00:20:47 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[Customizations]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[Content Editor]]></category>
		<category><![CDATA[SharePoint]]></category>

		<guid isPermaLink="false">http://www.benstegink.com/2010/02/01/hide-web-part-headers-with-sharepoint-2010/</guid>
		<description><![CDATA[A while a go a write a short post on how to hide web part headers in SharePoint 2007.&#160; Recently I had some inquire how to do the same thing for SharePoint 2010.&#160; So, here is what to do in order to hide a web part header in SharePoint 2010. 1.&#160; Add a content editor [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.sharepointben.com%2Fblog%2FLists%2FPosts%2FPost.aspx%3FID%3D430"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.sharepointben.com%2Fblog%2FLists%2FPosts%2FPost.aspx%3FID%3D430&amp;source=bstegink&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>A while a go a write a short post on how to hide web part headers in SharePoint 2007.&#160; Recently I had some inquire how to do the same thing for SharePoint 2010.&#160; So, here is what to do in order to hide a web part header in SharePoint 2010.</p>
<p>1.&#160; Add a content editor web part to your page.</p>
<p>2. Edit the Web Part</p>
<p>3. Click in the content area of the web part, click HTML and select “Edit HTML Source”</p>
<p>4. Put the following code in the web part:</p>
</p>
<div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:0c9067be-b95f-4d6e-bc7f-96a7b22bedb9" class="wlWriterEditableSmartContent">
<div style="border: #000080 1px solid; color: #000; font-family: 'Courier New', Courier, Monospace; font-size: 10pt">
<div style="background: #ddd; max-height: 300px; overflow: auto">
<ol style="background: #ffffff; margin: 0 0 0 2em; padding: 0 0 0 5px;">
<li><span style="color:#0000ff">&lt;</span><span style="color:#a31515">style</span><span style="color:#0000ff">&gt;</span></li>
<li style="background: #f3f3f3">&#160;&#160;TR.ms-viewheadertr &gt; TH.ms-vh2 {</li>
<li>&#160;&#160;DISPLAY: none</li>
<li style="background: #f3f3f3">&#160;&#160;}</li>
<li><span style="color:#0000ff">&lt;/</span><span style="color:#a31515">style</span><span style="color:#0000ff">&gt;</span></li>
</ol></div>
</p></div>
</p></div>
<p>&#160;</p>
<p>5. Click “OK”</p>
<p>6. Expand “Appearance” (on the right side of the page)</p>
<p>7. Set the chrome type to “None”</p>
<p>8. Click “OK” and then save and check in your page.</p>
<p>The headers of your web part should now be hidden.&#160; This can be extremely helpful when your page contains a web part using “boxed” for your style when creating a list view.&#160; The only downside to this approach is if you have multiple web parts on a single page, it will hide the headers for all the web parts on your site.</p>
<p><a href="http://www.benstegink.com/2008/12/10/hide-column-header-in-a-list-web-parts/">How to do the same thing in SharePoint 2007</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sharepointben.com/blog/Lists/Posts/Post.aspx?ID=430/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>SharePoint support in Visual Studio 2010</title>
		<link>http://www.sharepointben.com/blog/Lists/Posts/Post.aspx?ID=470</link>
		<comments>http://www.sharepointben.com/blog/Lists/Posts/Post.aspx?ID=470#comments</comments>
		<pubDate>Sat, 21 Feb 2009 05:53:54 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[MOSS]]></category>
		<category><![CDATA[Visual Studio 2010]]></category>
		<category><![CDATA[WSS]]></category>

		<guid isPermaLink="false">http://www.benstegink.com/2009/02/20/sharepoint-support-in-visual-studio-2010/</guid>
		<description><![CDATA[Somasegar&#8217;s WebBlog post, http://blogs.msdn.com/somasegar/archive/2009/02/19/sharepoint-tools-support-in-visual-studio.aspx;, gives a great preview of the increased and additional support for SharePoint in the next release of Visual Studio]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.sharepointben.com%2Fblog%2FLists%2FPosts%2FPost.aspx%3FID%3D470"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.sharepointben.com%2Fblog%2FLists%2FPosts%2FPost.aspx%3FID%3D470&amp;source=bstegink&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Somasegar&#8217;s WebBlog post, <a href="http://blogs.msdn.com/somasegar/archive/2009/02/19/sharepoint-tools-support-in-visual-studio.aspx">http://blogs.msdn.com/somasegar/archive/2009/02/19/sharepoint-tools-support-in-visual-studio.aspx</a>;, gives a great preview of the increased and additional support for SharePoint in the next release of Visual Studio</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sharepointben.com/blog/Lists/Posts/Post.aspx?ID=470/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Visual Studio 2008 Extensions for SharePoint, v1.3 Feb. CTP</title>
		<link>http://www.sharepointben.com/blog/Lists/Posts/Post.aspx?ID=471</link>
		<comments>http://www.sharepointben.com/blog/Lists/Posts/Post.aspx?ID=471#comments</comments>
		<pubDate>Sat, 21 Feb 2009 05:47:39 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[SharePoint]]></category>

		<guid isPermaLink="false">http://www.benstegink.com/?p=225</guid>
		<description><![CDATA[The February 2009 CTP of the Visual Studio 2008 Extensions for Windows SharePoint Server v3 have been made available for download. You can get them from http://www.microsoft.com/downloads/details.aspx?FamilyID=b2c0b628-5cab-48c1-8cae-c34c1ccbdc0a&#38;DisplayLang=en]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.sharepointben.com%2Fblog%2FLists%2FPosts%2FPost.aspx%3FID%3D471"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.sharepointben.com%2Fblog%2FLists%2FPosts%2FPost.aspx%3FID%3D471&amp;source=bstegink&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>The February 2009 CTP of the Visual Studio 2008 Extensions for Windows SharePoint Server v3 have been made available for download.  You can get them from <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=b2c0b628-5cab-48c1-8cae-c34c1ccbdc0a&amp;DisplayLang=en">http://www.microsoft.com/downloads/details.aspx?FamilyID=b2c0b628-5cab-48c1-8cae-c34c1ccbdc0a&amp;DisplayLang=en</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sharepointben.com/blog/Lists/Posts/Post.aspx?ID=471/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Vegas!! (and the SharePoint Conference 2009)</title>
		<link>http://www.sharepointben.com/blog/Lists/Posts/Post.aspx?ID=481</link>
		<comments>http://www.sharepointben.com/blog/Lists/Posts/Post.aspx?ID=481#comments</comments>
		<pubDate>Tue, 03 Feb 2009 22:13:23 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA["Office 14"]]></category>
		<category><![CDATA[Conferences]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[SharePoint]]></category>

		<guid isPermaLink="false">http://www.benstegink.com/2009/02/03/vegas-and-the-sharepoint-conference-2009/</guid>
		<description><![CDATA[Again, EVERYONE is blogging about this, so I had to make my heading a little different.&#160; Once again, in case you missed it, SharePoint Conference 2009 is in Vega this year.&#160; It will be October 19 – 22.&#160; It is for IT Professionals, IT Decision Makers, Architects and Developers with a plethora of classes for [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.sharepointben.com%2Fblog%2FLists%2FPosts%2FPost.aspx%3FID%3D481"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.sharepointben.com%2Fblog%2FLists%2FPosts%2FPost.aspx%3FID%3D481&amp;source=bstegink&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Again, EVERYONE is blogging about this, so I had to make my heading a little different.&#160; Once again, in case you missed it, SharePoint Conference 2009 is in Vega this year.&#160; It will be October 19 – 22.&#160; It is for IT Professionals, IT Decision Makers, Architects and Developers with a plethora of classes for everyone.</p>
<p>According the Microsoft’s own site, “<b>SharePoint Conference 2009 will be the conference to learn about SharePoint “14”.&quot;”</b></p>
<p><a href="http://www.mssharepointconference.com/Pages/spc2009.aspx">Register for the conference and get the early bird price!</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sharepointben.com/blog/Lists/Posts/Post.aspx?ID=481/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SharePoint Dispose Checker Tool</title>
		<link>http://www.sharepointben.com/blog/Lists/Posts/Post.aspx?ID=482</link>
		<comments>http://www.sharepointben.com/blog/Lists/Posts/Post.aspx?ID=482#comments</comments>
		<pubDate>Tue, 03 Feb 2009 22:09:01 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[SharePoint]]></category>

		<guid isPermaLink="false">http://www.benstegink.com/2009/02/03/sharepoint-dispose-checker-tool/</guid>
		<description><![CDATA[Ok, so I know everyone that is involved in SharePoint in some way and has a blog has written about this, but just in case you missed it…Microsoft has released the SharePoint Dispose Checker Tool.&#160; The official announcement on the SharePoint Team Blog can be read here.&#160; It is a great tool and is extremely [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.sharepointben.com%2Fblog%2FLists%2FPosts%2FPost.aspx%3FID%3D482"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.sharepointben.com%2Fblog%2FLists%2FPosts%2FPost.aspx%3FID%3D482&amp;source=bstegink&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Ok, so I know everyone that is involved in SharePoint in some way and has a blog has written about this, but just in case you missed it…Microsoft has released the <a href="http://code.msdn.microsoft.com/SPDisposeCheck">SharePoint Dispose Checker Tool</a>.&#160; The official announcement on the <a href="http://blogs.msdn.com/sharepoint/default.aspx">SharePoint Team Blog</a> can be read <a href="http://blogs.msdn.com/sharepoint/archive/2009/01/29/spdisposecheck-released.aspx">here</a>.&#160; It is a great tool and is extremely useful for those of you developing SharePoint assemblies and making sure you are properly disposing of all your objects.&#160; You can download the tool <a href="http://code.msdn.microsoft.com/SPDisposeCheck">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sharepointben.com/blog/Lists/Posts/Post.aspx?ID=482/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.470 seconds -->

