<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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:media="http://search.yahoo.com/mrss/" version="2.0">

<channel>
	<title>CJ</title>
	
	<link>http://claytonj.wordpress.com</link>
	<description>The circle of life - ** .Net - Training - MOSS **</description>
	<lastBuildDate>Tue, 03 Nov 2009 02:48:29 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain="claytonj.wordpress.com" port="80" path="/?rsscloud=notify" registerProcedure="" protocol="http-post" />
<image>
		<url>http://www.gravatar.com/blavatar/490269eb44e9675875e70193e79b67b7?s=96&amp;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>CJ</title>
		<link>http://claytonj.wordpress.com</link>
	</image>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/wordpress/CJ" type="application/rss+xml" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><item>
		<title>Retrieving data from InfoPath repeating tables</title>
		<link>http://claytonj.wordpress.com/2009/11/03/retrieving-data-from-infopath-repeating-tables/</link>
		<comments>http://claytonj.wordpress.com/2009/11/03/retrieving-data-from-infopath-repeating-tables/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 02:41:48 +0000</pubDate>
		<dc:creator>CJ</dc:creator>
				<category><![CDATA[.NET 2.0]]></category>

		<guid isPermaLink="false">http://claytonj.wordpress.com/?p=469</guid>
		<description><![CDATA[When trying to retreive and view data from InfoPath repeating tables using a no code solution you have a couple of options.
1.
When publising your form you can select the column in the repeating table and modify the column function from (first) to (merge). This merges all the repeating values into one column so you can see [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=claytonj.wordpress.com&blog=252582&post=469&subd=claytonj&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>When trying to retreive and view data from InfoPath repeating tables using a no code solution you have a couple of options.</p>
<p>1.<br />
When publising your form you can select the column in the repeating table and modify the column function from (first) to (merge). This merges all the repeating values into one column so you can see all the values in your SharePoint View. One problem with this approach<br />
is that the output doesn&#8217;t contain a delimiter for each column value so this makes it difficult for reporting</p>
<p>2.<br />
Another option is to add a textbox to the form which will concatinate the values and seperate them via a deliminator (in this case a semi-              colon &#8216;;&#8217;).</p>
<p>In the value area of the textbox add the following formula.<br />
xdMath:Eval(xdMath:Eval(/my:travelRequest/my:trips/my:trip, &#8216;concat(concat(concat(my:Airline_Name, concat(&#8221; &#8211; &#8220;, my:Flight_Identifier)), concat(&#8221; &#8211; &#8220;, my:Destination_EndDate)), &#8220;;&#8221;)&#8217;), &#8220;..&#8221;)</p>
<p>This outputs &#8220;Air France &#8211; GL3444 &#8211; 2009-11-05;Qantas - DJ3456 &#8211; 2009-11-27;&#8221;</p>
<p>To display this information in a SharePoint view you need to create a column in the Form Library for example FlightDetails and when you publish the form add a column mapping that maps FlightDetails to your textbox identifier.</p>
<p>Fill out a form and view the Flight information in a SharePoint view concatenated via a semi-colon. Now we have a &#8216;;&#8217; deliminator we can easily extract/filter data when exported to an excel spreadsheet.</p>
<p>If you want to you can hide the textbox so users don&#8217;t see the value when filling out the form.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/claytonj.wordpress.com/469/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/claytonj.wordpress.com/469/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/claytonj.wordpress.com/469/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/claytonj.wordpress.com/469/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/claytonj.wordpress.com/469/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/claytonj.wordpress.com/469/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/claytonj.wordpress.com/469/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/claytonj.wordpress.com/469/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/claytonj.wordpress.com/469/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/claytonj.wordpress.com/469/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=claytonj.wordpress.com&blog=252582&post=469&subd=claytonj&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://claytonj.wordpress.com/2009/11/03/retrieving-data-from-infopath-repeating-tables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1648935198fa105f091a059bf730b766?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">CJ</media:title>
		</media:content>
	</item>
		<item>
		<title>Paging and Sorting GridView Control</title>
		<link>http://claytonj.wordpress.com/2009/10/19/paging-and-sorting-gridview-control/</link>
		<comments>http://claytonj.wordpress.com/2009/10/19/paging-and-sorting-gridview-control/#comments</comments>
		<pubDate>Mon, 19 Oct 2009 06:55:21 +0000</pubDate>
		<dc:creator>CJ</dc:creator>
				<category><![CDATA[.NET 2.0]]></category>

		<guid isPermaLink="false">http://claytonj.wordpress.com/?p=455</guid>
		<description><![CDATA[If you implement paging and sorting in a GridView control then you need to maintain column level sorting when you move between pages.
I apoligise for the code formatting but wordpress doesn&#8217;t format code blocks very well.
General Methods
//general method to bind grid. Pass in true if this method is called from the page index event
protected void GridBind(bool [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=claytonj.wordpress.com&blog=252582&post=455&subd=claytonj&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>If you implement paging and sorting in a GridView control then you need to maintain column level sorting when you move between pages.</p>
<p>I apoligise for the code formatting but wordpress doesn&#8217;t format code blocks very well.</p>
<p><strong>General Methods<br />
//</strong>general method to bind grid. Pass in true if this method is called from the page index event<br />
<span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">protected </span></span></span></span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">void</span></span><span style="font-size:x-small;"> GridBind(</span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">bool</span></span><span style="font-size:x-small;"> IsPageIndexEvent)<br />
{<br />
    GridRequests.DataSource = SortDataTable(GetRequestsDataTable(LoginCode), IsPageIndexEvent);<br />
    GridRequests.DataBind();<br />
}</span></span></span></p>
<div><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;"> //get the data from the database and return a DataTable</span></span></span></div>
<div><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;"><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;"><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">protected <span style="font-size:x-small;">DataTable GetRequestsDataTable(</span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">string</span></span><span style="font-size:x-small;"> LoginCode)<br />
{<br />
    Requests business = </span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">new</span></span><span style="font-size:x-small;"> Requests();<br />
</span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">    return</span></span><span style="font-size:x-small;"> business.GetUsersRequests(LoginCode).Tables[0];<br />
}</span></span></span></span></span></span></span></span></span></div>
<div><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;"><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;"><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;"><br />
//sort the DataTable and maintain sort direction if called from page index event</span></span></span></span></span></span></span></span></span></div>
<div><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;"><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;"><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;"> </span></span></span></span></span>protected<span style="font-size:x-small;"> DataView SortDataTable(DataTable dataTable, </span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">bool</span></span><span style="font-size:x-small;"> isPageIndexChanging)<br />
{<br />
</span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">    if</span></span><span style="font-size:x-small;"> (dataTable != </span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">null</span></span><span style="font-size:x-small;">)<br />
    {<br />
        DataView dataView = </span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">new</span></span><span style="font-size:x-small;"> DataView(dataTable);<br />
</span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">        if</span></span><span style="font-size:x-small;"> (GridViewSortExpression != </span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">string</span></span><span style="font-size:x-small;">.Empty)<br />
        {<br />
</span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">            if</span></span><span style="font-size:x-small;"> (isPageIndexChanging) //pass in true if event fired from pageindex event<br />
            dataView.Sort = </span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">string</span></span><span style="font-size:x-small;">.Format(</span><span style="font-size:x-small;color:#800000;"><span style="font-size:x-small;color:#800000;">&#8220;{0} {1}&#8221;</span></span><span style="font-size:x-small;">, GridViewSortExpression, GridViewSortDirection);<br />
</span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">        else<br />
</span></span><span style="font-size:x-small;">            dataView.Sort = </span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">string</span></span><span style="font-size:x-small;">.Format(</span><span style="font-size:x-small;color:#800000;"><span style="font-size:x-small;color:#800000;">&#8220;{0} {1}&#8221;</span></span><span style="font-size:x-small;">, GridViewSortExpression, GetSortDirection());<br />
        }<br />
</span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">        return</span></span><span style="font-size:x-small;"> dataView;<br />
    }<br />
</span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">    else<br />
</span></span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">        return</span></span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">new</span></span><span style="font-size:x-small;"> DataView();<br />
}</span></span></span></span></span></div>
<div><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;"><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;"> </span></span></span></span></span></div>
<div><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;"></span></span></span><span style="font-size:x-small;"><strong>Sorting<br />
</strong>Set the AllowSorting property to &#8216;true&#8217; for the GridView<br />
Set a couple of properties to maintain sort column and direction across postbacks</span></div>
<div><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;"> <br />
</span></span></span></span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">private </span></span></span></span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">string</span></span><span style="font-size:x-small;"> GridViewSortDirection<br />
{<br />
</span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">    get</span></span><span style="font-size:x-small;"> { </span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">return</span></span><span style="font-size:x-small;"> ViewState[</span><span style="font-size:x-small;color:#800000;"><span style="font-size:x-small;color:#800000;">"SortDirection"</span></span><span style="font-size:x-small;">] </span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">as</span></span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">string</span></span><span style="font-size:x-small;"> ?? </span><span style="font-size:x-small;color:#800000;"><span style="font-size:x-small;color:#800000;">&#8220;ASC&#8221;</span></span><span style="font-size:x-small;">; }<br />
</span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">    set</span></span><span style="font-size:x-small;"> { ViewState[</span><span style="font-size:x-small;color:#800000;"><span style="font-size:x-small;color:#800000;">"SortDirection"</span></span><span style="font-size:x-small;">] = </span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">value</span></span><span style="font-size:x-small;">; }<br />
}</span></div>
<p><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">private</span></span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">string</span></span><span style="font-size:x-small;"> GridViewSortExpression<br />
{<br />
</span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">    get</span></span><span style="font-size:x-small;"> { </span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">return</span></span><span style="font-size:x-small;"> ViewState[</span><span style="font-size:x-small;color:#800000;"><span style="font-size:x-small;color:#800000;">"SortExpression"</span></span><span style="font-size:x-small;">] </span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">as</span></span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">string</span></span><span style="font-size:x-small;"> ?? </span><span style="font-size:x-small;color:#800000;"><span style="font-size:x-small;color:#800000;">&#8220;Request Id&#8221;</span></span><span style="font-size:x-small;">; }<br />
</span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">    set</span></span><span style="font-size:x-small;"> { ViewState[</span><span style="font-size:x-small;color:#800000;"><span style="font-size:x-small;color:#800000;">"SortExpression"</span></span><span style="font-size:x-small;">] = </span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">value</span></span><span style="font-size:x-small;">; }<br />
}</span></p>
<p><span style="font-size:x-small;">//this method is called to alternate sort direction<br />
</span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">private </span></span></span></span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">string</span></span><span style="font-size:x-small;"> GetSortDirection()<br />
{<br />
</span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">    switch</span></span><span style="font-size:x-small;"> (GridViewSortDirection)<br />
    {<br />
</span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">        case</span></span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#800000;"><span style="font-size:x-small;color:#800000;">&#8220;ASC&#8221;</span></span><span style="font-size:x-small;">:<br />
</span><span style="font-size:x-small;">            GridViewSortDirection = </span><span style="font-size:x-small;color:#800000;"><span style="font-size:x-small;color:#800000;">&#8220;DESC&#8221;</span></span><span style="font-size:x-small;">;<br />
</span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">            break</span></span><span style="font-size:x-small;">;<br />
</span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">        case</span></span><span style="font-size:x-small;"> </span><span style="font-size:x-small;color:#800000;"><span style="font-size:x-small;color:#800000;">&#8220;DESC&#8221;</span></span><span style="font-size:x-small;">:<br />
            GridViewSortDirection = </span><span style="font-size:x-small;color:#800000;"><span style="font-size:x-small;color:#800000;">&#8220;ASC&#8221;</span></span><span style="font-size:x-small;">;<br />
</span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">            break</span></span><span style="font-size:x-small;">;<br />
    }<br />
</span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">    return</span></span><span style="font-size:x-small;"> GridViewSortDirection;<br />
}</span></p>
<p><span style="font-size:x-small;"> <br />
//alternate sort direction and maintain page index<br />
</span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">void</span></span><span style="font-size:x-small;"> GridRequests_Sorting(</span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">object</span></span><span style="font-size:x-small;"> sender, GridViewSortEventArgs e)<br />
{<br />
    GridViewSortExpression = e.SortExpression;<br />
</span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">    int</span></span><span style="font-size:x-small;"> pageIndex = GridRequests.PageIndex;<br />
    GridBind(</span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">false</span></span><span style="font-size:x-small;">); //pageindex event did not fire binding<br />
    GridRequests.PageIndex = pageIndex;<br />
}</span></p>
<div><span style="font-size:x-small;"><span style="font-size:x-small;color:#0000ff;"> </span></span></div>
<div><span style="font-size:x-small;"><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;"> </span></span></span></div>
<div>Turn paging on in the GridView control and wire up the Grid_PageIndexChanging event<span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">protected</span></span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">void</span></span><span style="font-size:x-small;"> GridRequests_PageIndexChanging(</span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">object</span></span><span style="font-size:x-small;"> sender, GridViewPageEventArgs e)<br />
{<br />
    GridBind(</span><span style="font-size:x-small;color:#0000ff;"><span style="font-size:x-small;color:#0000ff;">true</span></span><span style="font-size:x-small;">);//maintain sort direction as we are only navigating between pages<br />
    GridRequests.PageIndex = e.NewPageIndex;<br />
    GridRequests.DataBind();<br />
}</span></div>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/claytonj.wordpress.com/455/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/claytonj.wordpress.com/455/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/claytonj.wordpress.com/455/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/claytonj.wordpress.com/455/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/claytonj.wordpress.com/455/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/claytonj.wordpress.com/455/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/claytonj.wordpress.com/455/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/claytonj.wordpress.com/455/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/claytonj.wordpress.com/455/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/claytonj.wordpress.com/455/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=claytonj.wordpress.com&blog=252582&post=455&subd=claytonj&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://claytonj.wordpress.com/2009/10/19/paging-and-sorting-gridview-control/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1648935198fa105f091a059bf730b766?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">CJ</media:title>
		</media:content>
	</item>
		<item>
		<title>SharePoint Designer Training</title>
		<link>http://claytonj.wordpress.com/2009/10/14/sharepoint-designer-training/</link>
		<comments>http://claytonj.wordpress.com/2009/10/14/sharepoint-designer-training/#comments</comments>
		<pubDate>Wed, 14 Oct 2009 08:38:11 +0000</pubDate>
		<dc:creator>CJ</dc:creator>
				<category><![CDATA[MOSS 2007]]></category>
		<category><![CDATA[Presentaitons]]></category>

		<guid isPermaLink="false">http://claytonj.wordpress.com/?p=453</guid>
		<description><![CDATA[I am currently up in the sugar capital of Australia, Mackay delivering a 3 day SharePoint designer training course.
Lots of cool things learned:

Embedding/displaying videos from a document library in a web page
Branding: Custom master page design, CSS and overriding core.css
Integrate Twitter into your site
DataView Web Part: integration with databases, web services and rss (and sharepoint rollups)
IE Developer [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=claytonj.wordpress.com&blog=252582&post=453&subd=claytonj&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I am currently up in the sugar capital of Australia, Mackay delivering a 3 day SharePoint designer training course.</p>
<p>Lots of cool things learned:</p>
<ul>
<li>Embedding/displaying videos from a document library in a web page</li>
<li>Branding: Custom master page design, CSS and overriding core.css</li>
<li>Integrate Twitter into your site</li>
<li>DataView Web Part: integration with databases, web services and rss (and sharepoint rollups)</li>
<li>IE Developer Toolbar is your best friend</li>
</ul>
<p>And why are those Fab 40 templates so crap!</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/claytonj.wordpress.com/453/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/claytonj.wordpress.com/453/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/claytonj.wordpress.com/453/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/claytonj.wordpress.com/453/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/claytonj.wordpress.com/453/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/claytonj.wordpress.com/453/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/claytonj.wordpress.com/453/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/claytonj.wordpress.com/453/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/claytonj.wordpress.com/453/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/claytonj.wordpress.com/453/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=claytonj.wordpress.com&blog=252582&post=453&subd=claytonj&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://claytonj.wordpress.com/2009/10/14/sharepoint-designer-training/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1648935198fa105f091a059bf730b766?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">CJ</media:title>
		</media:content>
	</item>
		<item>
		<title>Security Trim "View All Site Content"</title>
		<link>http://claytonj.wordpress.com/2009/07/28/security-trim-view-all-site-content/</link>
		<comments>http://claytonj.wordpress.com/2009/07/28/security-trim-view-all-site-content/#comments</comments>
		<pubDate>Tue, 28 Jul 2009 13:16:39 +0000</pubDate>
		<dc:creator>CJ</dc:creator>
				<category><![CDATA[WSS 3.0]]></category>

		<guid isPermaLink="false">http://claytonj.wordpress.com/2009/07/28/security-trim-view-all-site-content/</guid>
		<description><![CDATA[I have been asked this a few times. How can I remove the View All Site Content link for certain users?
The View All Site Content link can be a great navigational link or a problematic link that confuses end users. 
The default security setting for this SPLinkButton is set to be displayed to everyone&#8230;and when [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=claytonj.wordpress.com&blog=252582&post=452&subd=claytonj&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I have been asked this a few times. How can I remove the View All Site Content link for certain users?</p>
<p>The View All Site Content link can be a great navigational link or a problematic link that confuses end users.<br /><a href="http://claytonj.files.wordpress.com/2009/07/image.png"><img style="border-bottom:0;border-left:0;border-top:0;border-right:0;" border="0" alt="image" src="http://claytonj.files.wordpress.com/2009/07/image_thumb.png?w=142&#038;h=70" width="142" height="70"></a> </p>
<p>The default security setting for this SPLinkButton is set to be displayed to everyone&#8230;and when I say everyone I mean everyone&#8230;viewers and even anonymous users. This is found in the master page in your site. </p>
<ol>
<li>Open up the master page in SharePoint designer</li>
<li>Place the page into split view</li>
<li>Click the View All Site Content link and in you code window you should see the following </li>
</ol>
<p>&lt;Sharepoint:SPSecurityTrimmedControl runat=&#8221;server&#8221; PermissionsString=&#8221;ViewFormPages&#8221;&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;div class=&#8221;ms-quicklaunchheader&#8221;&gt;&lt;SharePoint:SPLinkButton id=&#8221;idNavLinkViewAll&#8221; runat=&#8221;server&#8221; NavigateUrl=&#8221;~site/_layouts/viewlsts.aspx&#8221; Text=&#8221;&lt;%$Resources:wss,quiklnch_allcontent%&gt;&#8221; AccessKey=&#8221;&lt;%$Resources:wss,quiklnch_allcontent_AK%&gt;&#8221;/&gt;&lt;/div&gt;<br />&lt;/SharePoint:SPSecurityTrimmedControl&gt;
<div class="ms-quicklaunchheader"></div>
<div class="ms-quicklaunchheader"></div>
<div class="ms-quicklaunchheader"></div>
<div class="ms-quicklaunchheader"></div>
<p>&nbsp;</p>
<p>Thankfully we can easily upgrade the security to different security level. For example, if we change the PermissionsString=&#8221;ManageWeb&#8221; then only users who have this permission level (site admins) will see the View All Site Content link.</p>
<p>&lt;Sharepoint:SPSecurityTrimmedControl runat=&#8221;server&#8221; PermissionsString=&#8221;ManageWeb&#8221;&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;div class=&#8221;ms-quicklaunchheader&#8221;&gt;&lt;SharePoint:SPLinkButton id=&#8221;idNavLinkViewAll&#8221; runat=&#8221;server&#8221; NavigateUrl=&#8221;~site/_layouts/viewlsts.aspx&#8221; Text=&#8221;&lt;%$Resources:wss,quiklnch_allcontent%&gt;&#8221; AccessKey=&#8221;&lt;%$Resources:wss,quiklnch_allcontent_AK%&gt;&#8221;/&gt;&lt;/div&gt;<br />&lt;/SharePoint:SPSecurityTrimmedControl&gt;</p>
<p>&nbsp;</p>
<p>There are a number of different permission levels that you can <a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spbasepermissions.aspx" target="_blank">view here</a>.</p>
<p>The SharePoint:SecurityTrimmedControl is a handy control that can be used in many locations. For example, wrap it around the Site Actions control for custom and you remove this control based on security.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/claytonj.wordpress.com/452/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/claytonj.wordpress.com/452/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/claytonj.wordpress.com/452/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/claytonj.wordpress.com/452/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/claytonj.wordpress.com/452/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/claytonj.wordpress.com/452/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/claytonj.wordpress.com/452/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/claytonj.wordpress.com/452/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/claytonj.wordpress.com/452/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/claytonj.wordpress.com/452/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=claytonj.wordpress.com&blog=252582&post=452&subd=claytonj&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://claytonj.wordpress.com/2009/07/28/security-trim-view-all-site-content/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1648935198fa105f091a059bf730b766?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">CJ</media:title>
		</media:content>

		<media:content url="http://claytonj.files.wordpress.com/2009/07/image_thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Test in Multiple Browsers</title>
		<link>http://claytonj.wordpress.com/2009/05/29/test-in-multiple-browsers/</link>
		<comments>http://claytonj.wordpress.com/2009/05/29/test-in-multiple-browsers/#comments</comments>
		<pubDate>Thu, 28 May 2009 23:57:11 +0000</pubDate>
		<dc:creator>CJ</dc:creator>
				<category><![CDATA[.NET 2.0]]></category>
		<category><![CDATA[.Net 3.0]]></category>

		<guid isPermaLink="false">http://claytonj.wordpress.com/?p=445</guid>
		<description><![CDATA[This has always been a problem for developers with requirements to support multiple browsers. When writing code various browsers render the exact same peice of code differently. So the development process consists of programming workarounds so they render the same or very similar.
Now we have a free tool that we can use to test multiple [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=claytonj.wordpress.com&blog=252582&post=445&subd=claytonj&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>This has always been a problem for developers with requirements to support multiple browsers. When writing code various browsers render the exact same peice of code differently. So the development process consists of programming workarounds so they render the same or very similar.</p>
<p>Now we have a free tool that we can use to test multiple browsers easily during our development process.</p>
<p><a href="http://www.xenocode.com/browsers/">http://www.xenocode.com/browsers/</a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/claytonj.wordpress.com/445/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/claytonj.wordpress.com/445/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/claytonj.wordpress.com/445/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/claytonj.wordpress.com/445/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/claytonj.wordpress.com/445/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/claytonj.wordpress.com/445/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/claytonj.wordpress.com/445/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/claytonj.wordpress.com/445/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/claytonj.wordpress.com/445/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/claytonj.wordpress.com/445/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=claytonj.wordpress.com&blog=252582&post=445&subd=claytonj&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://claytonj.wordpress.com/2009/05/29/test-in-multiple-browsers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1648935198fa105f091a059bf730b766?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">CJ</media:title>
		</media:content>
	</item>
		<item>
		<title>Add .Net User Controls to SharePoint</title>
		<link>http://claytonj.wordpress.com/2009/05/25/add-net-user-controls-to-sharepoint/</link>
		<comments>http://claytonj.wordpress.com/2009/05/25/add-net-user-controls-to-sharepoint/#comments</comments>
		<pubDate>Mon, 25 May 2009 01:10:02 +0000</pubDate>
		<dc:creator>CJ</dc:creator>
				<category><![CDATA[.NET 2.0]]></category>
		<category><![CDATA[.Net 3.0]]></category>
		<category><![CDATA[WSS 3.0]]></category>

		<guid isPermaLink="false">http://claytonj.wordpress.com/?p=435</guid>
		<description><![CDATA[I have been developing inside SharePoint for a while now and while things are getting easier with tools I think this process for developing User Controls inside SharePoint gives me a lot of control.

I have a Graphical User Interface
I have a separate project to build and test outside of SharePoint
I can easily update and view my project html [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=claytonj.wordpress.com&blog=252582&post=435&subd=claytonj&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I have been developing inside SharePoint for a while now and while things are getting easier with tools I think this process for developing User Controls inside SharePoint gives me a lot of control.</p>
<ol>
<li>I have a Graphical User Interface</li>
<li>I have a separate project to build and test outside of SharePoint</li>
<li>I can easily update and view my project html and binary code</li>
</ol>
<p>Currently this process doesn&#8217;t create me any SharePoint Solution files to deploy across environments. I think to achieve this I will need to create a VS 2008 SharePoint Project&#8230;but so far these projects seem to add weight and time that I don&#8217;t want at the moment&#8230;while I am developing.</p>
<ol>
<li>Create a VS2008 web project</li>
<li>In IIS create an IIS Application under your SharePoint web site that has a path to your VS2008 web project created above. This helps for updating content</li>
<li>In your VS2008 project create some user controls and test that they function</li>
<li>In VS2008 project properties under the Build Events tab point the Post Build events text box and add a copy statement to copy your .dlls and .pdbs to your SharePoint web sites bin directory. This will deploy a new .dll every time you build your VS2008 project. I had problems when I put the VS2008 project .dll into the GAC&#8230;it only worked when I put it into the SharePoint&#8217;s web sites bin directory</li>
<li>Update your master page with CSS references if your VS2008 project contains a style sheet.</li>
<li>In SPD in your Page Layout add a Register directive to register your user control<br />
&#8220;&lt;%@ Register Src=&#8221;~/UI/UserControls/JobGoals.ascx&#8221; TagPrefix=&#8221;uc1&#8243; TagName=&#8221;JobGoals&#8221; %&gt;&#8221;<br />
OR<br />
Update the SharePoint web site web.config file<br />
&lt;pages&gt;<br />
  &lt;controls&gt;<br />
        &lt;add src=&#8221;~/UI/UserControls/MyAttributes.ascx&#8221; tagPrefix=&#8221;uc1&#8243; tagName=&#8221;MyAttributes&#8221;/&gt;<br />
        &lt;add src=&#8221;~/UI/UserControls/JobGoals.ascx&#8221; tagPrefix=&#8221;uc1&#8243; tagName=&#8221;JobGoals&#8221; /&gt;<br />
    &lt;/controls&gt;<br />
&lt;/pages&gt;</li>
<li>Add the User Control to the Page Layout<br />
&lt;uc1:JobGoals ID=&#8221;JobGoals1&#8243; runat=&#8221;server&#8221; /&gt;</li>
<li>Update the SharePoinnt web sites web.config file<br />
&lt;SafeControl Src=&#8221;~/UI/*&#8221;  IncludeSubFolders=&#8221;True&#8221; Safe=&#8221;True&#8221; AllowRemoteDesigner=&#8221;True&#8221; /&gt;</li>
<li>Restart IIS, navigate to a page that uses the page layout and you should see your User Control</li>
</ol>
<p>Because we created a IIS Application under our SharePoint web site and mapped our VS2008 projects .dll output path to our SharePoints web site, updates are extremely simple.</p>
<ol>
<li>.ascx changes:                modify, save in VS2008 and refresh sharepoint browser</li>
<li>.ascx.cs changes:          modify, save, build  in VS2008 and refresh sharepoint browser</li>
</ol>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/claytonj.wordpress.com/435/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/claytonj.wordpress.com/435/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/claytonj.wordpress.com/435/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/claytonj.wordpress.com/435/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/claytonj.wordpress.com/435/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/claytonj.wordpress.com/435/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/claytonj.wordpress.com/435/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/claytonj.wordpress.com/435/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/claytonj.wordpress.com/435/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/claytonj.wordpress.com/435/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=claytonj.wordpress.com&blog=252582&post=435&subd=claytonj&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://claytonj.wordpress.com/2009/05/25/add-net-user-controls-to-sharepoint/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1648935198fa105f091a059bf730b766?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">CJ</media:title>
		</media:content>
	</item>
		<item>
		<title>User Group Presentation – Content Query Web Part – Part 2</title>
		<link>http://claytonj.wordpress.com/2009/05/20/user-group-presentation-content-query-web-part-part-2/</link>
		<comments>http://claytonj.wordpress.com/2009/05/20/user-group-presentation-content-query-web-part-part-2/#comments</comments>
		<pubDate>Wed, 20 May 2009 12:05:07 +0000</pubDate>
		<dc:creator>CJ</dc:creator>
				<category><![CDATA[MOSS 2007]]></category>
		<category><![CDATA[Presentaitons]]></category>

		<guid isPermaLink="false">http://claytonj.wordpress.com/2009/05/20/user-group-presentation-content-query-web-part-part-2/</guid>
		<description><![CDATA[I completed my Part 2 presentation on the CQWP today. I thought that the rain may have kept the numbers down so it was great to see a good turn out.
Topic Covered:

How and where best to use &#8211; plan ahead
Displaying extra columns in result set
Modifying the ItemStyle.xsl and .webpart files
XSLT
Tips and tricks &#8211; (thanks Tim [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=claytonj.wordpress.com&blog=252582&post=434&subd=claytonj&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I completed my Part 2 presentation on the CQWP today. I thought that the rain may have kept the numbers down so it was great to see a good turn out.</p>
<p>Topic Covered:</p>
<ul>
<li>How and where best to use &#8211; plan ahead</li>
<li>Displaying extra columns in result set</li>
<li>Modifying the ItemStyle.xsl and .webpart files</li>
<li>XSLT</li>
<li>Tips and tricks &#8211; (thanks Tim for the select=.) tip</li>
<li>Subclassing using Visual Studio</li>
<li>Deployment</li>
</ul>
<p>&nbsp;</p>
<p>I always need more time presenting at user groups. </p>
<p>Slide deck and demos will be uploaded to the BSPUG site soon.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/claytonj.wordpress.com/434/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/claytonj.wordpress.com/434/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/claytonj.wordpress.com/434/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/claytonj.wordpress.com/434/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/claytonj.wordpress.com/434/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/claytonj.wordpress.com/434/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/claytonj.wordpress.com/434/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/claytonj.wordpress.com/434/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/claytonj.wordpress.com/434/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/claytonj.wordpress.com/434/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=claytonj.wordpress.com&blog=252582&post=434&subd=claytonj&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://claytonj.wordpress.com/2009/05/20/user-group-presentation-content-query-web-part-part-2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1648935198fa105f091a059bf730b766?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">CJ</media:title>
		</media:content>
	</item>
		<item>
		<title>SharePoint Authentication: FireFoxs works but IE doesn’t</title>
		<link>http://claytonj.wordpress.com/2009/05/20/sharepoint-authentication-firefoxs-works-but-ie-doesnt/</link>
		<comments>http://claytonj.wordpress.com/2009/05/20/sharepoint-authentication-firefoxs-works-but-ie-doesnt/#comments</comments>
		<pubDate>Wed, 20 May 2009 11:44:11 +0000</pubDate>
		<dc:creator>CJ</dc:creator>
				<category><![CDATA[MOSS 2007]]></category>
		<category><![CDATA[Office 12]]></category>
		<category><![CDATA[WSS 3.0]]></category>

		<guid isPermaLink="false">http://claytonj.wordpress.com/2009/05/20/sharepoint-authentication-firefoxs-works-but-ie-doesnt/</guid>
		<description><![CDATA[I was having a great deal of pain on a new SharePoint development server recently. Environment = Windows 2008, IE7. 
Situation

Create a SharePoint web application with a host header on port 80. Create a site collection
Update host file (or DNS) with new host header entry
In IE make sure the web application is in the Intranet [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=claytonj.wordpress.com&blog=252582&post=432&subd=claytonj&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I was having a great deal of pain on a new SharePoint development server recently. Environment = Windows 2008, IE7. </p>
<p><strong>Situation</strong></p>
<ol>
<li>Create a SharePoint web application with a host header on port 80. Create a site collection</li>
<li>Update host file (or DNS) with new host header entry</li>
<li>In IE make sure the web application is in the Intranet Zone</li>
<li>Open up browser in IE navigate to site using host header and the authentication dialog login is displayed.</li>
<li>Enter my credentials 3 times and receive a 401.1 and an entry in the Security Event log</li>
<li>If I open FireFox and browse to the web site the authentication dialog is displayed</li>
<li>I enter my credentials and I can log in fine<br />Note: To get rid of the authentication prompt in FireFox</li>
<ol>
<li>Open FireFox and in the address type about:config</li>
<li>Find the entry network.automatic-ntlm-auth.trusted-uris</li>
<li>Set the Key&#8217;s value to a comma seperated list of trusted URIs i.e your host header</li>
</ol>
<li>So FireFox is fine but IE is having issues</li>
</ol>
<p>&nbsp;</p>
<p><strong>Solution</strong></p>
<p>I <em>finally </em>stumbled across a blog article from <a href="http://blog.brianfarnhill.com/2008/11/19/ie8-beta-2-authentication-issues-with-host-header-configured-sites/" target="_blank">Brian Farnhill</a> and <a href="http://www.sharepoint-tips.com/2009/04/access-denied-in-win2008-with-custom.html" target="_blank">Ishai Sagi</a> that lead me to the solution.</p>
<p><strong>You receive error 401.1 when you browse a Web site that uses Integrated Authentication and is hosted on IIS 5.1 or IIS 6<br /></strong><a href="http://support.microsoft.com/default.aspx/kb/896861">http://support.microsoft.com/default.aspx/kb/896861</a></p>
<p>In my case I am using IE 7 and while the Solution/Workaround discusses two separate methods and states that method one is preferred, I could only fix my issue upon completing method 2</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/claytonj.wordpress.com/432/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/claytonj.wordpress.com/432/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/claytonj.wordpress.com/432/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/claytonj.wordpress.com/432/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/claytonj.wordpress.com/432/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/claytonj.wordpress.com/432/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/claytonj.wordpress.com/432/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/claytonj.wordpress.com/432/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/claytonj.wordpress.com/432/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/claytonj.wordpress.com/432/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=claytonj.wordpress.com&blog=252582&post=432&subd=claytonj&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://claytonj.wordpress.com/2009/05/20/sharepoint-authentication-firefoxs-works-but-ie-doesnt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1648935198fa105f091a059bf730b766?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">CJ</media:title>
		</media:content>
	</item>
		<item>
		<title>Accessibility Resources</title>
		<link>http://claytonj.wordpress.com/2009/05/15/accessibility-resources/</link>
		<comments>http://claytonj.wordpress.com/2009/05/15/accessibility-resources/#comments</comments>
		<pubDate>Fri, 15 May 2009 05:03:21 +0000</pubDate>
		<dc:creator>CJ</dc:creator>
				<category><![CDATA[.NET 2.0]]></category>

		<guid isPermaLink="false">http://claytonj.wordpress.com/?p=427</guid>
		<description><![CDATA[A list of useful accessibility resources
Microsoft ASP.Net

Building ASP.NET 2.0 Web Sites Using Web Standards &#8211; a must read
http://msdn.microsoft.com/en-us/library/aa479043.aspx

Accessibility Support in ASP.Net
http://msdn.microsoft.com/en-us/library/ms228004(VS.80).aspx
 
Invaulable resource on .Net controls and their accessibility
Will explain what controls you can use with no isses (their not listed), what you need to do or not do to use certan controls, and what controls [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=claytonj.wordpress.com&blog=252582&post=427&subd=claytonj&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>A list of useful accessibility resources</p>
<p><strong><span style="text-decoration:underline;">Microsoft ASP.Net</span></strong></p>
<ul>
<li><strong>Building ASP.NET 2.0 Web Sites Using Web Standards &#8211; a must read<br />
<a href="http://msdn.microsoft.com/en-us/library/aa479043.aspx">http://msdn.microsoft.com/en-us/library/aa479043.aspx</a><br />
</strong></li>
<li><strong>Accessibility Support in ASP.Net<br />
<a href="http://msdn.microsoft.com/en-us/library/ms228004(VS.80).aspx">http://msdn.microsoft.com/en-us/library/ms228004(VS.80).aspx</a><br />
</strong> </li>
<li><strong>Invaulable resource on .Net controls and their accessibility<br />
</strong>Will explain what controls you can use with no isses (their not listed), what you need to do or not do to use certan controls, and what controls cannot be used full stop.<br />
<a href="http://msdn.microsoft.com/en-us/library/ms227996(VS.80).aspx"><strong>http://msdn.microsoft.com/en-us/library/ms227996(VS.80).aspx</strong></a><br />
 </li>
<li><strong>How to: Use Label Web Server Controls as Captions &#8211; AssociateControlId; AccessKey<br />
<a href="http://msdn.microsoft.com/en-us/library/ms227968(VS.80).aspx">http://msdn.microsoft.com/en-us/library/ms227968(VS.80).aspx</a><br />
</strong><strong></strong></li>
</ul>
<p><strong>SharePoint Specific</strong></p>
<ul>
<li><strong>SharePoint Dev Wiki<br />
<a href="http://www.sharepointdevwiki.com/display/public/SharePoint+Accessibility">http://www.sharepointdevwiki.com/display/public/SharePoint+Accessibility</a></strong></li>
</ul>
<p><strong>Tools</strong></p>
<ul>
<li><strong>Accessibilty &amp; XHTML  checker.<br />
Online, Client download and FireFox plug-in - Total Validator<br />
<a href="http://www.totalvalidator.com/index.html">http://www.totalvalidator.com/index.html</a><br />
</strong></li>
<li><strong>Online Accessiblity Checker<br />
<a href="http://wave.webaim.org/">http://wave.webaim.org/</a> </strong></li>
</ul>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/claytonj.wordpress.com/427/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/claytonj.wordpress.com/427/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/claytonj.wordpress.com/427/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/claytonj.wordpress.com/427/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/claytonj.wordpress.com/427/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/claytonj.wordpress.com/427/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/claytonj.wordpress.com/427/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/claytonj.wordpress.com/427/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/claytonj.wordpress.com/427/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/claytonj.wordpress.com/427/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=claytonj.wordpress.com&blog=252582&post=427&subd=claytonj&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://claytonj.wordpress.com/2009/05/15/accessibility-resources/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1648935198fa105f091a059bf730b766?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">CJ</media:title>
		</media:content>
	</item>
		<item>
		<title>Importing AD Employee Photos into SharePoint User Profiles</title>
		<link>http://claytonj.wordpress.com/2009/05/08/importing-employee-photos-into-sharepoint-user-profiles/</link>
		<comments>http://claytonj.wordpress.com/2009/05/08/importing-employee-photos-into-sharepoint-user-profiles/#comments</comments>
		<pubDate>Fri, 08 May 2009 04:57:41 +0000</pubDate>
		<dc:creator>CJ</dc:creator>
				<category><![CDATA[MOSS 2007]]></category>
		<category><![CDATA[Office 12]]></category>

		<guid isPermaLink="false">http://claytonj.wordpress.com/?p=420</guid>
		<description><![CDATA[I was recently asked to provide a process for importing Employee pictures into SharePoint so they would show up in search results and various OOTB web parts. This particular client has MOSS but doesn&#8217;t use My Sites.
This post by Henry initially helped me out.
They didn&#8217;t want the individual users to have the abilty to upload [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=claytonj.wordpress.com&blog=252582&post=420&subd=claytonj&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I was recently asked to provide a process for importing Employee pictures into SharePoint so they would show up in search results and various OOTB web parts. This particular client has MOSS but doesn&#8217;t use My Sites.</p>
<p>This post by <a href="http://blog.henryong.com/2007/02/21/importing-user-pictures-from-active-directory-to-moss-2007/" target="_blank">Henry</a> initially helped me out.</p>
<p>They didn&#8217;t want the individual users to have the abilty to upload their own photo&#8217;s or modify them in any way, this was to be managed by IT.</p>
<ol>
<li>Create a Picture Library in your Intranet. This will store the photo&#8217;s for each employee. When storing employee photo&#8217;s chose the filename carefully if you want to populate the AD using scripts. I use something like cjames.jpg which is a correlation to the users account name.</li>
<li>In Active Directory choose an AD property that will be mapped to your SharePoint User Profile Property. In my case I selected the extensionAttribute1 field that is located in the ExchangedAdvanced tab ((note this field may not show up if the Exchange Mgt Console hasn&#8217;t been installed)</li>
<li>Populate this field with the URL to the employee&#8217;s photo that is in the Picture Library e.g <a href="http://sitename/EmployeePhotos/CJames.jpg">http://sitename/ProfilePhotos/CJames.jpg</a> (look below for a script example)</li>
<li>In SharePoint SSP click the User Profiles and Properties link</li>
<li>Click the View Profile Properties under the heading User Profile Properties</li>
<li>Find the Picture property and select the Edit menu item</li>
<li>Make note of the Usage: Number of profiles using this property. This should increase after we complete a full import</li>
<li>At the bottom of the screen make sure Master Connection is selected and in the Datasource field to map select extensionAttribute1 (note: this field may not show up if the Exchange Mgt Console hasn&#8217;t been installed)</li>
<li>Click Ok</li>
<li>Complete a StartFull Import</li>
<li>Once the full import is complete go back into the the Picture property and again check the Usage:Number of profiles that use this property. This should now contain some values.</li>
<li>Verify this by viewing an Employee&#8217;s profile and the Picture property</li>
</ol>
<p>Some things I had issues with:</p>
<ul>
<li>Make sure your Import Connection service account has &#8220;Manage User Profile&#8221; permissions</li>
<li>May need to execute a Full Search crawl once photos are uploaded in the Picture Library</li>
</ul>
<p>I also wrote a script to populate the AD extensionAttribute1 field as there were over 1000 employee&#8217;s and no one put their hand up for this job. The import thing here was for employee photo images to have a one to one mapping with their login account name (samaccountname). The person who runs this script also needs certain permissions in AD to update AD accounts. I would initially comment out the On Error Resume Next so you see if your account has enough privleges or not.</p>
<p>The script is very limited but hopefully it may provide some insight.</p>
<p>&#8216;On Error Resume Next<br />
Set objParent = GetObject(&#8220;<a href="//OU=Users,OU=Brisbane,OU=Offices,OU=AU,DC=ingeus,DC=local">LDAP://OU=Users,OU=Austraila,OU=Offices,OU=AU,DC=domain,DC=local</a>&#8220;)<br />
objparent.Filter = Array(&#8220;user&#8221;)<br />
for each objUser in objParent<br />
  Wscript.Echo &#8220;Modifying &#8221; &amp; objUser.Get(&#8220;samaccountname&#8221;) <br />
  objUser.put &#8220;extensionAttribute1&#8243;, &#8220;<a href="http://ingeusnet/ProfilePhotos/">http://sitename/ProfilePhotos/</a>&#8221; &amp; objUser.Get(&#8220;samaccountname&#8221;) &amp; &#8220;.jpg&#8221;<br />
  objuser.Setinfo   <br />
next</p>
<p>Wscript.Echo &#8220;End&#8221;</p>
<p>Now, IT are responsible whenever they create a new account they must also populate the extensionAttribute1 field with the URL of the picture library and the employee&#8217;s picture filename will always be their account name.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/claytonj.wordpress.com/420/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/claytonj.wordpress.com/420/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/claytonj.wordpress.com/420/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/claytonj.wordpress.com/420/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/claytonj.wordpress.com/420/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/claytonj.wordpress.com/420/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/claytonj.wordpress.com/420/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/claytonj.wordpress.com/420/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/claytonj.wordpress.com/420/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/claytonj.wordpress.com/420/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=claytonj.wordpress.com&blog=252582&post=420&subd=claytonj&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://claytonj.wordpress.com/2009/05/08/importing-employee-photos-into-sharepoint-user-profiles/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1648935198fa105f091a059bf730b766?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">CJ</media:title>
		</media:content>
	</item>
	</channel>
</rss>
