<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Adrian Henke's Blog</title>
	<atom:link href="http://adrianhenke.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://adrianhenke.wordpress.com</link>
	<description>code, thoughts and random stuff</description>
	<lastBuildDate>Thu, 26 Jan 2012 18:48:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='adrianhenke.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Adrian Henke's Blog</title>
		<link>http://adrianhenke.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://adrianhenke.wordpress.com/osd.xml" title="Adrian Henke&#039;s Blog" />
	<atom:link rel='hub' href='http://adrianhenke.wordpress.com/?pushpress=hub'/>
		<item>
		<title>MSBuild and Private Accessors of Unit Tests</title>
		<link>http://adrianhenke.wordpress.com/2010/10/21/msbuild-and-private-accessors-of-unit-tests/</link>
		<comments>http://adrianhenke.wordpress.com/2010/10/21/msbuild-and-private-accessors-of-unit-tests/#comments</comments>
		<pubDate>Thu, 21 Oct 2010 20:00:46 +0000</pubDate>
		<dc:creator>adrianhenke</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[build-server]]></category>
		<category><![CDATA[MSBuild]]></category>
		<category><![CDATA[unit-test]]></category>

		<guid isPermaLink="false">http://adrianhenke.wordpress.com/?p=173</guid>
		<description><![CDATA[If you use a MSBuild on a build server to compile your visual studio solutions, you might know this problem: MSBuild won&#8217;t be able to compile your unit-test project, because it can&#8217;t find the private accessor classes, which are usually generated dynamically. The error looks like this: The type or namespace name &#8216;MyClass_Accessor&#8217; could not [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=adrianhenke.wordpress.com&amp;blog=3454522&amp;post=173&amp;subd=adrianhenke&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you use a MSBuild on a build server to compile your visual studio solutions, you might know this problem: MSBuild won&#8217;t be able to compile your unit-test project, because it can&#8217;t find the private accessor classes, which are usually generated dynamically. The error looks like this:</p>
<p><em>The type or namespace name &#8216;MyClass_Accessor&#8217; could not be found (are you missing a using directive or an assembly reference?</em></p>
<p>So basically, MSBuild does not generate those classes for you for some reason. However it works nice on your dev machine. Why? On your dev machine, Visual Studio uses the tool <a href="http://msdn.microsoft.com/en-us/library/bb514191(VS.90).aspx">publicize.exe</a> to create the private accessors in the background. This component is not present on your build server though.</p>
<p><strong>Step 1: Deploy publicize component to the build server</strong></p>
<p>Copy the following folder from your dev machine to your build server.<br />
C:\Program Files\MSBuild\Microsoft\VisualStudio\v9.0\TeamTest<br />
If your build-server is 64bit, also copy the folder to<br />
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v9.0\TeamTest</p>
<p>Now if you run msbuild again, it should finally attempt to generate the private accessors. Howeve you will run into this error:</p>
<p><em>Could not load file or assembly &#8216;file:///C:\BuildServer\MySolution\MyProject\Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll&#8217; or one of its dependencies. The system cannot find the file specified.</em></p>
<p>This means we need to deploy an additional component..</p>
<p><strong>Step 2: Deploy unit test framework to the build server</strong></p>
<p>On your dev server, take the files Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll and Microsoft.VisualStudio.QualityTools.Resource.dll from the GAC (c:\windows\assembly) and copy them into the project folder of the unit test, according to the error message.</p>
<p>This worked for me (VS 2008, .NET 3.5). Note that the path names might differ if you have a different setup.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/adrianhenke.wordpress.com/173/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/adrianhenke.wordpress.com/173/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/adrianhenke.wordpress.com/173/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/adrianhenke.wordpress.com/173/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/adrianhenke.wordpress.com/173/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/adrianhenke.wordpress.com/173/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/adrianhenke.wordpress.com/173/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/adrianhenke.wordpress.com/173/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/adrianhenke.wordpress.com/173/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/adrianhenke.wordpress.com/173/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/adrianhenke.wordpress.com/173/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/adrianhenke.wordpress.com/173/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/adrianhenke.wordpress.com/173/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/adrianhenke.wordpress.com/173/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=adrianhenke.wordpress.com&amp;blog=3454522&amp;post=173&amp;subd=adrianhenke&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://adrianhenke.wordpress.com/2010/10/21/msbuild-and-private-accessors-of-unit-tests/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6976292d6b7bb0915bdc8ca78a9227e1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">AdrianHenke</media:title>
		</media:content>
	</item>
		<item>
		<title>Sharepoint Error: Save Conflict Your changes conflict with those made concurrently by another user</title>
		<link>http://adrianhenke.wordpress.com/2010/08/20/sharepoint-error-save-conflict-your-changes-conflict-with-those-made-concurrently-by-another-user/</link>
		<comments>http://adrianhenke.wordpress.com/2010/08/20/sharepoint-error-save-conflict-your-changes-conflict-with-those-made-concurrently-by-another-user/#comments</comments>
		<pubDate>Fri, 20 Aug 2010 11:03:01 +0000</pubDate>
		<dc:creator>adrianhenke</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Sharepoint]]></category>

		<guid isPermaLink="false">http://adrianhenke.wordpress.com/?p=170</guid>
		<description><![CDATA[If you develop Sharepoint components that modify list items, you might know this error: Save Conflict Your changes conflict with those made concurrently by another user. If you want your changes to be applied, click Back in your Web browser, refresh the page, and resubmit your changes. This happens whenever you try to save a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=adrianhenke.wordpress.com&amp;blog=3454522&amp;post=170&amp;subd=adrianhenke&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you develop Sharepoint components that modify list items, you might know this error:</p>
<p><em>Save Conflict</em></p>
<p><em>Your changes conflict with those made concurrently by another user. If you want your changes to be applied, click Back in your Web browser, refresh the page, and resubmit your changes.</em></p>
<p>This happens whenever you try to save a SPListItem which has been modified since you opened it. Review your code to ensure that you don&#8217;t open the same list item multiple times, work with a single SPListItem object instead.</p>
<p>Sometimes however it is necessary to open the same list item in parallel, as example if you want to perform an operation with elevated privileges on the item. If you take this approach you need to ensure that if you save one of the SPListItem objects, you need to reload all other SPListItems that point to the same actual item. Otherwise you&#8217;ll get the error above whenever you perform a change on the outdated items.</p>
<p>You can use the following utility method to ease the reloading of items:</p>
<p><pre class="brush: csharp;">
        /// &lt;summary&gt;
        /// Reload a list item from scratch
        /// &lt;/summary&gt;
        /// &lt;param name=&quot;item&quot;&gt;The list item&lt;/param&gt;
        /// &lt;remarks&gt;
        /// Useful to avoid save conflicts
        /// &lt;/remarks&gt;
        /// &lt;returns&gt;&lt;/returns&gt;
        public static SPListItem ReloadListItem(SPListItem item)
        {
            if (item == null)
                return null;

            return item.ParentList.GetItemByUniqueId(item.UniqueId);
        }
</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/adrianhenke.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/adrianhenke.wordpress.com/170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/adrianhenke.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/adrianhenke.wordpress.com/170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/adrianhenke.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/adrianhenke.wordpress.com/170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/adrianhenke.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/adrianhenke.wordpress.com/170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/adrianhenke.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/adrianhenke.wordpress.com/170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/adrianhenke.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/adrianhenke.wordpress.com/170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/adrianhenke.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/adrianhenke.wordpress.com/170/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=adrianhenke.wordpress.com&amp;blog=3454522&amp;post=170&amp;subd=adrianhenke&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://adrianhenke.wordpress.com/2010/08/20/sharepoint-error-save-conflict-your-changes-conflict-with-those-made-concurrently-by-another-user/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6976292d6b7bb0915bdc8ca78a9227e1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">AdrianHenke</media:title>
		</media:content>
	</item>
		<item>
		<title>Custom redirect after creating a new Sharepoint Item</title>
		<link>http://adrianhenke.wordpress.com/2010/08/19/custom-redirect-after-creating-a-new-sharepoint-item/</link>
		<comments>http://adrianhenke.wordpress.com/2010/08/19/custom-redirect-after-creating-a-new-sharepoint-item/#comments</comments>
		<pubDate>Thu, 19 Aug 2010 18:16:51 +0000</pubDate>
		<dc:creator>adrianhenke</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Sharepoint]]></category>

		<guid isPermaLink="false">http://adrianhenke.wordpress.com/?p=166</guid>
		<description><![CDATA[When creating a new Item in a Sharepoint list, the redirection works according to these rules: If the URL contains a valid &#8220;Source&#8221; parameter, the user user will be redirected to this URL Otherwise the user will be redirected to the default view of the list, such as AllItems.aspx There are different approaches to change [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=adrianhenke.wordpress.com&amp;blog=3454522&amp;post=166&amp;subd=adrianhenke&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>When creating a new Item in a Sharepoint list, the redirection works according to these rules:</p>
<ul>
<li>If the URL contains a valid &#8220;Source&#8221; parameter, the user user will be redirected to this URL</li>
<li>Otherwise the user will be redirected to the default view of the list, such as AllItems.aspx</li>
</ul>
<p>There are different approaches to change this behavior:</p>
<p><strong>Via URL Parameter</strong></p>
<p>One appraoch is to override the redirection by changing the Source parameter of the URL. This means the incoming link to the NewForm.aspx contains the redirection URL already. This is pretty static, sometimes you want to set the redirection on the fly. Also the appraoch enforces the same redirection for both Safe and Close buttons on the form.</p>
<p><strong>Via Event Receiver</strong></p>
<p>It is possible to redirect within an event receiver. This means placing a redirect command within a synchrounous event which aborts the normal event flow in a way, that asynchrounous events and other attached event receivers won&#8217;t work anymore.</p>
<p><strong>Via Custom Safe Buttons</strong></p>
<p>It is possible to replace the default buttons on the NewForm.aspx page by custom controls. So basically you develop a custom button that inherits from the Sharepoint &#8220;SaveButton&#8221; class. In there you can apply custom logic for redirection.</p>
<p><strong>Via JavaScript</strong></p>
<p>This is a novel approach I developed to get more flexibility and stability for the redirection behavior. It allows to set the redirection on the clientside.</p>
<p><pre class="brush: jscript;">
$(document).ready(function() {

    var button = $(&quot;input[id$=SaveItem]&quot;);
    // change redirection behavior
        button.removeAttr(&quot;onclick&quot;);
        button.click(function() {
            var elementName = $(this).attr(&quot;name&quot;);
            var aspForm = $(&quot;form[name=aspnetForm]&quot;);
            var oldPostbackUrl = aspForm.get(0).action;
            var currentSourceValue = GetUrlKeyValue(&quot;Source&quot;, true, oldPostbackUrl);
            var newPostbackUrl = oldPostbackUrl.replace(currentSourceValue, &quot;MyRedirectionDestination.aspx&quot;);

            if (!PreSaveItem()) return false;
            WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(elementName, &quot;&quot;, true, &quot;&quot;, newPostbackUrl, false, true));
        });
    
});
</pre></p>
<p>So basically we modify the click behavior of the create button on the NewForm.aspx to pass in a new &#8220;Source&#8221; parameter value just before the form is submitted. </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/adrianhenke.wordpress.com/166/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/adrianhenke.wordpress.com/166/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/adrianhenke.wordpress.com/166/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/adrianhenke.wordpress.com/166/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/adrianhenke.wordpress.com/166/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/adrianhenke.wordpress.com/166/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/adrianhenke.wordpress.com/166/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/adrianhenke.wordpress.com/166/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/adrianhenke.wordpress.com/166/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/adrianhenke.wordpress.com/166/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/adrianhenke.wordpress.com/166/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/adrianhenke.wordpress.com/166/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/adrianhenke.wordpress.com/166/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/adrianhenke.wordpress.com/166/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=adrianhenke.wordpress.com&amp;blog=3454522&amp;post=166&amp;subd=adrianhenke&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://adrianhenke.wordpress.com/2010/08/19/custom-redirect-after-creating-a-new-sharepoint-item/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6976292d6b7bb0915bdc8ca78a9227e1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">AdrianHenke</media:title>
		</media:content>
	</item>
		<item>
		<title>The &#8220;Column Element&#8221; in Sharepoint Render pattern is empty sometimes</title>
		<link>http://adrianhenke.wordpress.com/2010/08/05/the-column-element-in-sharepoint-render-pattern-is-empty-sometimes/</link>
		<comments>http://adrianhenke.wordpress.com/2010/08/05/the-column-element-in-sharepoint-render-pattern-is-empty-sometimes/#comments</comments>
		<pubDate>Thu, 05 Aug 2010 14:00:42 +0000</pubDate>
		<dc:creator>adrianhenke</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[Sharepoint]]></category>

		<guid isPermaLink="false">http://adrianhenke.wordpress.com/?p=158</guid>
		<description><![CDATA[According to the Sharepoint SDK: Column Element (View) Returns the raw data value for a particular field, as opposed to the formatted version provided by the Field element. In the case of a Lookup field, Column returns the local value (an ID number in the list that references another list), while the LookupColumn element returns [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=adrianhenke.wordpress.com&amp;blog=3454522&amp;post=158&amp;subd=adrianhenke&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>According to the Sharepoint SDK:</p>
<p><em>Column Element (View)<br />
Returns the raw data value for a particular field, as opposed to the formatted version provided by the Field element. In the case of a Lookup field, Column returns the local value (an ID number in the list that references another list), while the LookupColumn element returns the data from the foreign table.</em></p>
<p>They failed to mention that the output will be <strong>empty</strong> if the specified column is not included in the containing view already! Seems like a bug / undocumented issue to me.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/adrianhenke.wordpress.com/158/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/adrianhenke.wordpress.com/158/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/adrianhenke.wordpress.com/158/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/adrianhenke.wordpress.com/158/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/adrianhenke.wordpress.com/158/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/adrianhenke.wordpress.com/158/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/adrianhenke.wordpress.com/158/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/adrianhenke.wordpress.com/158/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/adrianhenke.wordpress.com/158/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/adrianhenke.wordpress.com/158/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/adrianhenke.wordpress.com/158/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/adrianhenke.wordpress.com/158/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/adrianhenke.wordpress.com/158/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/adrianhenke.wordpress.com/158/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=adrianhenke.wordpress.com&amp;blog=3454522&amp;post=158&amp;subd=adrianhenke&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://adrianhenke.wordpress.com/2010/08/05/the-column-element-in-sharepoint-render-pattern-is-empty-sometimes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6976292d6b7bb0915bdc8ca78a9227e1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">AdrianHenke</media:title>
		</media:content>
	</item>
		<item>
		<title>The &#8220;show quoted messages&#8221; link breaks other controls</title>
		<link>http://adrianhenke.wordpress.com/2010/04/26/the-show-quoted-messages-link-breaks-other-controls/</link>
		<comments>http://adrianhenke.wordpress.com/2010/04/26/the-show-quoted-messages-link-breaks-other-controls/#comments</comments>
		<pubDate>Mon, 26 Apr 2010 17:46:42 +0000</pubDate>
		<dc:creator>adrianhenke</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[bugfix]]></category>
		<category><![CDATA[Sharepoint]]></category>

		<guid isPermaLink="false">http://adrianhenke.wordpress.com/?p=154</guid>
		<description><![CDATA[In Sharepoint discussion boards, there is the &#8220;show quoted messages&#8221; button within each post. It allows to collapse/expand the quoted message. However this button causes a serious problem: If you place additional postback sensitive controls on the discussion page, they might break whenever the &#8220;show quoted messages&#8221; is clicked. This happens, because this button does [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=adrianhenke.wordpress.com&amp;blog=3454522&amp;post=154&amp;subd=adrianhenke&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In Sharepoint discussion boards, there is the &#8220;show quoted messages&#8221; button within each post. It allows to collapse/expand the quoted message.</p>
<p>However this button causes a serious problem:<br />
If you place additional postback sensitive controls on the discussion page, they might break whenever the &#8220;show quoted messages&#8221; is clicked. This happens, because this button does not perform a valid postback.</p>
<p>Here is a JS based fix:</p>
<p><pre class="brush: jscript;">


// workaround for broken show-quoted-text button in discussion board
// see core.js for the original function

function ShowQuotedText(guid, anchor) {
    var frm = document.forms[MSOWebPartPageFormName];
    frm.CAML_ShowOriginalEmailBody.value = frm.CAML_ShowOriginalEmailBody.value.concat(guid);
    if (frm.action.indexOf(&quot;#&quot;) &gt; 0) {
        frm.action = frm.action.substr(0, frm.action.indexOf(&quot;#&quot;));
    }
    frm.action = frm.action.concat(&quot;#&quot; + anchor);
    
    // a raw form submit will cause the people editor to break
    //frm.submit();
    // perform a proper postback instead
    __doPostBack('__Page', ''); 
    
    return false;
}

</pre></p>
<p>Simply include this snipped in the header of the affected page, or in an external JS file. Just make sure that it is being loaded <strong>after</strong> core.js.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/adrianhenke.wordpress.com/154/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/adrianhenke.wordpress.com/154/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/adrianhenke.wordpress.com/154/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/adrianhenke.wordpress.com/154/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/adrianhenke.wordpress.com/154/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/adrianhenke.wordpress.com/154/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/adrianhenke.wordpress.com/154/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/adrianhenke.wordpress.com/154/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/adrianhenke.wordpress.com/154/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/adrianhenke.wordpress.com/154/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/adrianhenke.wordpress.com/154/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/adrianhenke.wordpress.com/154/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/adrianhenke.wordpress.com/154/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/adrianhenke.wordpress.com/154/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=adrianhenke.wordpress.com&amp;blog=3454522&amp;post=154&amp;subd=adrianhenke&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://adrianhenke.wordpress.com/2010/04/26/the-show-quoted-messages-link-breaks-other-controls/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6976292d6b7bb0915bdc8ca78a9227e1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">AdrianHenke</media:title>
		</media:content>
	</item>
		<item>
		<title>Sharepoint SPGridView, expand specific group using Javascript</title>
		<link>http://adrianhenke.wordpress.com/2010/04/16/sharepoint-spgridview-expand-specific-group-using-javascript/</link>
		<comments>http://adrianhenke.wordpress.com/2010/04/16/sharepoint-spgridview-expand-specific-group-using-javascript/#comments</comments>
		<pubDate>Fri, 16 Apr 2010 18:47:18 +0000</pubDate>
		<dc:creator>adrianhenke</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Sharepoint]]></category>

		<guid isPermaLink="false">http://adrianhenke.wordpress.com/?p=150</guid>
		<description><![CDATA[Sometimes you want to expand a specific group within a SPGridView using Javascript. The following function achieves just that: Basically you pass in the (serverside) ID of the SPGridView control and the index of the group that should be expanded. As example, the function call being contructed on the asp.net side: Note: The script requires [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=adrianhenke.wordpress.com&amp;blog=3454522&amp;post=150&amp;subd=adrianhenke&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Sometimes you want to expand a specific group within a SPGridView using Javascript.</p>
<p>The following function achieves just that:</p>
<p><pre class="brush: jscript;">
function spGridViewExpandViewGroup(gridviewId, groupIndex) {

    var gridview = $(&quot;[id$='&quot; + gridviewId + &quot;']&quot;);
    var rows = gridview.find(&quot;tr[isexp]&quot;);

    if (rows.length &gt;= groupIndex) {
        var row = rows.get(groupIndex);
        
        if ($(row).attr('isexp') == 'false') {
            var link = $(row).find(&quot;a[title='Expand/Collapse']&quot;);
            link.click();
        }
    }
}
</pre></p>
<p>Basically you pass in the (serverside) ID of the SPGridView control and the index of the group that should be expanded.</p>
<p>As example, the function call being contructed on the asp.net side:</p>
<p><pre class="brush: csharp;">
string javaScript = string.Format(&quot;spGridViewExpandViewGroup('{0}',{1});&quot;, gridView.ID, 0);
Page.ClientScript.RegisterStartupScript(typeof(string), &quot;expandviewgroup&quot;, javaScript, true);
</pre></p>
<p>Note: The script requires the jQuery library to be included.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/adrianhenke.wordpress.com/150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/adrianhenke.wordpress.com/150/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/adrianhenke.wordpress.com/150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/adrianhenke.wordpress.com/150/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/adrianhenke.wordpress.com/150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/adrianhenke.wordpress.com/150/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/adrianhenke.wordpress.com/150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/adrianhenke.wordpress.com/150/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/adrianhenke.wordpress.com/150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/adrianhenke.wordpress.com/150/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/adrianhenke.wordpress.com/150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/adrianhenke.wordpress.com/150/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/adrianhenke.wordpress.com/150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/adrianhenke.wordpress.com/150/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=adrianhenke.wordpress.com&amp;blog=3454522&amp;post=150&amp;subd=adrianhenke&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://adrianhenke.wordpress.com/2010/04/16/sharepoint-spgridview-expand-specific-group-using-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6976292d6b7bb0915bdc8ca78a9227e1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">AdrianHenke</media:title>
		</media:content>
	</item>
		<item>
		<title>Sharepoint SPGridView control is expanded by default</title>
		<link>http://adrianhenke.wordpress.com/2010/04/16/sharepoint-spgridview-control-is-expanded-by-default/</link>
		<comments>http://adrianhenke.wordpress.com/2010/04/16/sharepoint-spgridview-control-is-expanded-by-default/#comments</comments>
		<pubDate>Fri, 16 Apr 2010 17:19:25 +0000</pubDate>
		<dc:creator>adrianhenke</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Sharepoint]]></category>

		<guid isPermaLink="false">http://adrianhenke.wordpress.com/?p=147</guid>
		<description><![CDATA[The Sharepoint SPGridView control seems to be rendered as expanded sometimes, although it should be collapsed. Here is a javascript function to fix this issue: Simply call the script upon page load. Note: The script requires the jQuery library to be included.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=adrianhenke.wordpress.com&amp;blog=3454522&amp;post=147&amp;subd=adrianhenke&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The Sharepoint SPGridView control seems to be rendered as expanded sometimes, although it should be collapsed.</p>
<p>Here is a javascript function to fix this issue:</p>
<p><pre class="brush: jscript;">
function spGridViewFixExpandedGroups(gridviewId) {
    var gridview = $(&quot;[id$='&quot; + gridviewId + &quot;']&quot;);
    var links = gridview.find(&quot;tr[isexp='true'] a[title='Expand/Collapse']&quot;);
    links.click();
}
</pre></p>
<p>Simply call the script upon page load. Note: The script requires the jQuery library to be included.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/adrianhenke.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/adrianhenke.wordpress.com/147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/adrianhenke.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/adrianhenke.wordpress.com/147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/adrianhenke.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/adrianhenke.wordpress.com/147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/adrianhenke.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/adrianhenke.wordpress.com/147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/adrianhenke.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/adrianhenke.wordpress.com/147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/adrianhenke.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/adrianhenke.wordpress.com/147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/adrianhenke.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/adrianhenke.wordpress.com/147/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=adrianhenke.wordpress.com&amp;blog=3454522&amp;post=147&amp;subd=adrianhenke&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://adrianhenke.wordpress.com/2010/04/16/sharepoint-spgridview-control-is-expanded-by-default/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6976292d6b7bb0915bdc8ca78a9227e1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">AdrianHenke</media:title>
		</media:content>
	</item>
		<item>
		<title>Disable Sharepoint item events firing during item update</title>
		<link>http://adrianhenke.wordpress.com/2010/01/29/disable-item-events-firing-during-item-update/</link>
		<comments>http://adrianhenke.wordpress.com/2010/01/29/disable-item-events-firing-during-item-update/#comments</comments>
		<pubDate>Fri, 29 Jan 2010 16:09:21 +0000</pubDate>
		<dc:creator>adrianhenke</dc:creator>
				<category><![CDATA[1]]></category>
		<category><![CDATA[IT]]></category>
		<category><![CDATA[eventhandler]]></category>
		<category><![CDATA[Sharepoint]]></category>

		<guid isPermaLink="false">http://adrianhenke.wordpress.com/?p=141</guid>
		<description><![CDATA[In Sharepoint, the attached item events are fired whenever you perform an item.Update() Ryan posted a solution to this issue, using a custom event handler that disables the events upon request. What I dislike about the solution, is the risk of leaving the events disabled. Assume an exception occurs, the code will never reach the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=adrianhenke.wordpress.com&amp;blog=3454522&amp;post=141&amp;subd=adrianhenke&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In Sharepoint, the attached item events are fired whenever you perform an item.Update()<br />
Ryan posted <a href="http://blogs.syrinx.com/blogs/sharepoint/archive/2008/11/10/disabling-event-firing-on-splistitem-update-differently.aspx">a solution</a> to this issue, using a custom event handler that disables the events upon request.</p>
<p>What I dislike about the solution, is the risk of leaving the events disabled. Assume an exception occurs, the code will never reach the line where the event firing is enabled (restored) again.</p>
<p>I suggest a <em>using</em>-pattern, much like the <a href="http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx">TransactionScope</a> class used for db transactions in the entity framework.</p>
<p><pre class="brush: csharp;">
    class DisabledItemEventsScope : SPItemEventReceiver, IDisposable
    {
        public DisabledItemEventsScope()
        {
            base.DisableEventFiring();
        }

        #region IDisposable Members

        public void Dispose()
        {
            base.EnableEventFiring();
        }

        #endregion
    }
</pre></p>
<p>Now we can use this class together with the <em>using</em> syntax to create a scope within all item event firing is disabled.</p>
<p><pre class="brush: csharp;">
                using (DisabledItemEventsScope scope = new DisabledItemEventsScope())
                {
                    item.SystemUpdate(); // will NOT fire events
                }
                item.SystemUpdate(); // will fire events again
</pre></p>
<p>This way, the event firing is enabled again as soon as the code leaves the defined scope, be it through normal operation or by exceptions.</p>
<p><strong>Update 1</strong></p>
<p>For SharePoint 2010, use this snippet instead:</p>
<p><pre class="brush: csharp;">
    /// &lt;summary&gt;
    /// Disabled item events scope
    /// &lt;/summary&gt;
    /// &lt;see cref=&quot;http://adrianhenke.wordpress.com/2010/01/29/disable-item-events-firing-during-item-update/&quot;/&gt;
    class DisabledItemEventsScope : SPItemEventReceiver, IDisposable
    {
        bool oldValue;

        public DisabledItemEventsScope()
        {
            this.oldValue = base.EventFiringEnabled;
            base.EventFiringEnabled = false;
        }

        #region IDisposable Members

        public void Dispose()
        {
            base.EventFiringEnabled = oldValue;
        }

        #endregion
    }
</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/adrianhenke.wordpress.com/141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/adrianhenke.wordpress.com/141/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/adrianhenke.wordpress.com/141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/adrianhenke.wordpress.com/141/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/adrianhenke.wordpress.com/141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/adrianhenke.wordpress.com/141/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/adrianhenke.wordpress.com/141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/adrianhenke.wordpress.com/141/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/adrianhenke.wordpress.com/141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/adrianhenke.wordpress.com/141/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/adrianhenke.wordpress.com/141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/adrianhenke.wordpress.com/141/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/adrianhenke.wordpress.com/141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/adrianhenke.wordpress.com/141/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=adrianhenke.wordpress.com&amp;blog=3454522&amp;post=141&amp;subd=adrianhenke&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://adrianhenke.wordpress.com/2010/01/29/disable-item-events-firing-during-item-update/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6976292d6b7bb0915bdc8ca78a9227e1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">AdrianHenke</media:title>
		</media:content>
	</item>
		<item>
		<title>Outlook contacts: Move all numbers from &#8220;Other Phone&#8221; to &#8220;Mobile Phone&#8221; field</title>
		<link>http://adrianhenke.wordpress.com/2010/01/22/outlook-contacts-move-all-numbers-from-other-phone-to-mobile-phone-field/</link>
		<comments>http://adrianhenke.wordpress.com/2010/01/22/outlook-contacts-move-all-numbers-from-other-phone-to-mobile-phone-field/#comments</comments>
		<pubDate>Fri, 22 Jan 2010 20:51:03 +0000</pubDate>
		<dc:creator>adrianhenke</dc:creator>
				<category><![CDATA[1]]></category>

		<guid isPermaLink="false">http://adrianhenke.wordpress.com/?p=138</guid>
		<description><![CDATA[Outlook contact items have multiple available fields for storing phone numbers. Such as &#8220;other phone&#8221; and &#8220;mobile phone&#8221;. Unfortunately some mobile phone sync software stores the numbers in the &#8220;other phone&#8221; fied, which becomes a problem if you switch to a new mobile phone that is not able to read this field. I wrote this [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=adrianhenke.wordpress.com&amp;blog=3454522&amp;post=138&amp;subd=adrianhenke&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Outlook contact items have multiple available fields for storing phone numbers. Such as &#8220;other phone&#8221; and &#8220;mobile phone&#8221;.</p>
<p>Unfortunately some mobile phone sync software stores the numbers in the &#8220;other phone&#8221; fied, which becomes a problem if you switch to a new mobile phone that is not able to read this field. I wrote this little powershell script to scan all outlook contacts and migrate the values from the &#8220;other phone&#8221; field to the &#8220;mobile phone&#8221; field:</p>
<p><pre class="brush: powershell;">
$outlook = new-object -com outlook.application
$contacts = $outlook.Session.GetDefaultFolder(10)
$contacts.Items | % { if($_.MobileTelephoneNumber -eq &quot;&quot;) { $_.MobileTelephoneNumber = $_.OtherTelephoneNumber; $_.OtherTelephoneNumber = &quot;&quot;; $_.save() } }
</pre></p>
<p>Copy&amp;paste the above source code into your PowerShell window to run it.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/adrianhenke.wordpress.com/138/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/adrianhenke.wordpress.com/138/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/adrianhenke.wordpress.com/138/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/adrianhenke.wordpress.com/138/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/adrianhenke.wordpress.com/138/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/adrianhenke.wordpress.com/138/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/adrianhenke.wordpress.com/138/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/adrianhenke.wordpress.com/138/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/adrianhenke.wordpress.com/138/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/adrianhenke.wordpress.com/138/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/adrianhenke.wordpress.com/138/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/adrianhenke.wordpress.com/138/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/adrianhenke.wordpress.com/138/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/adrianhenke.wordpress.com/138/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=adrianhenke.wordpress.com&amp;blog=3454522&amp;post=138&amp;subd=adrianhenke&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://adrianhenke.wordpress.com/2010/01/22/outlook-contacts-move-all-numbers-from-other-phone-to-mobile-phone-field/feed/</wfw:commentRss>
		<slash:comments>33</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6976292d6b7bb0915bdc8ca78a9227e1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">AdrianHenke</media:title>
		</media:content>
	</item>
		<item>
		<title>Sharepoint Designer, changing list forms does not work</title>
		<link>http://adrianhenke.wordpress.com/2009/10/14/sharepoint-designer-changing-list-forms-does-not-work/</link>
		<comments>http://adrianhenke.wordpress.com/2009/10/14/sharepoint-designer-changing-list-forms-does-not-work/#comments</comments>
		<pubDate>Wed, 14 Oct 2009 16:50:04 +0000</pubDate>
		<dc:creator>adrianhenke</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[custom list forms]]></category>
		<category><![CDATA[Sharepoint]]></category>
		<category><![CDATA[webpart]]></category>

		<guid isPermaLink="false">http://adrianhenke.wordpress.com/?p=135</guid>
		<description><![CDATA[In Sharepoint Designer, you can specify the path to the display item form, edit item form and new item form. You find these settings in the list properties under &#8220;supporting files&#8221;. However sometimes sharepoint silently discards your changes and uses the original form again. No matter how often you specify your custom form, it will [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=adrianhenke.wordpress.com&amp;blog=3454522&amp;post=135&amp;subd=adrianhenke&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In Sharepoint Designer, you can specify the path to the <em>display item form</em>, <em>edit item form</em> and <em>new item form.</em> You find these settings in the list properties under &#8220;supporting files&#8221;.</p>
<p>However sometimes sharepoint silently discards your changes and uses the original form again. No matter how often you specify your custom form, it will be changed back to the original form. If this happens to you, try the following:</p>
<ul>
<li>Make sure your form contains the original ListFormWebPart, set its <em>IsIncluded</em> property to false.</li>
<li>Open your form in design view and make sure that none of the components (like custom webparts) throw an exception during rendering</li>
</ul>
<p>If sharepoint encounters one of the issues above, it might reset the supporting files url back to the original values. Let me know if there are more conditions that cause this issue..</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/adrianhenke.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/adrianhenke.wordpress.com/135/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/adrianhenke.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/adrianhenke.wordpress.com/135/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/adrianhenke.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/adrianhenke.wordpress.com/135/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/adrianhenke.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/adrianhenke.wordpress.com/135/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/adrianhenke.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/adrianhenke.wordpress.com/135/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/adrianhenke.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/adrianhenke.wordpress.com/135/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/adrianhenke.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/adrianhenke.wordpress.com/135/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=adrianhenke.wordpress.com&amp;blog=3454522&amp;post=135&amp;subd=adrianhenke&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://adrianhenke.wordpress.com/2009/10/14/sharepoint-designer-changing-list-forms-does-not-work/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6976292d6b7bb0915bdc8ca78a9227e1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">AdrianHenke</media:title>
		</media:content>
	</item>
	</channel>
</rss>
