<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:pingback="http://madskills.com/public/xml/rss/module/pingback/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>All things .NET and beyond - Sharepoint</title>
    <link>http://www.fluxtah.com/</link>
    <description>Ian (Fluxtah) Warwick's blog</description>
    <language>en-us</language>
    <copyright>Ian Warwick</copyright>
    <lastBuildDate>Thu, 17 Dec 2009 11:34:00 GMT</lastBuildDate>
    <generator>newtelligence dasBlog 2.3.9074.18820</generator>
    <managingEditor>fluxtah@hotmail.com</managingEditor>
    <webMaster>fluxtah@hotmail.com</webMaster>
    <item>
      <trackback:ping>http://www.fluxtah.com/Trackback.aspx?guid=d0dc280e-2600-4617-b32a-967223e4ade3</trackback:ping>
      <pingback:server>http://www.fluxtah.com/pingback.aspx</pingback:server>
      <pingback:target>http://www.fluxtah.com/PermaLink,guid,d0dc280e-2600-4617-b32a-967223e4ade3.aspx</pingback:target>
      <dc:creator>Fluxtah</dc:creator>
      <wfw:comment>http://www.fluxtah.com/CommentView,guid,d0dc280e-2600-4617-b32a-967223e4ade3.aspx</wfw:comment>
      <wfw:commentRss>http://www.fluxtah.com/SyndicationService.asmx/GetEntryCommentsRss?guid=d0dc280e-2600-4617-b32a-967223e4ade3</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">Its common practice to use a user control
in a web part via LoadControl(...). By doing this you get the ASP.NET designer experience
when working with .ascx files.<br /><br />
After seeing some implementations of encapsulating a user control in a web part, I
created a version that uses a generic base class that has the benefits of giving strongly
typed access to the user control, the class is as follows.<br /><pre><span style="color: Black; background-color: Transparent; font-family: Courier New; font-size: 11px;"><span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;">public</span><span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;">abstract</span><span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;">class</span> UserControlWebPart&lt;T&gt;
: WebPart where T : UserControl { <span style="color: Green; background-color: Transparent; font-family: Courier New; font-size: 11px;">///
&lt;summary&gt;</span><span style="color: Green; background-color: Transparent; font-family: Courier New; font-size: 11px;">///
The control in the ASCX file</span><span style="color: Green; background-color: Transparent; font-family: Courier New; font-size: 11px;">///
&lt;/summary&gt;</span><span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;">protected</span> T
UserControl { get; set; } <span style="color: Green; background-color: Transparent; font-family: Courier New; font-size: 11px;">///
&lt;summary&gt;</span><span style="color: Green; background-color: Transparent; font-family: Courier New; font-size: 11px;">///
Path to the ASCX file</span><span style="color: Green; background-color: Transparent; font-family: Courier New; font-size: 11px;">///
&lt;/summary&gt;</span><span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;">protected</span><span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;">abstract</span><span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;">string</span> UserControlPath
{ get; } <span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;">protected</span><span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;">override</span><span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;">void</span> CreateChildControls()
{ <span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;">base</span>.CreateChildControls(); <span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;">if</span> (!<span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;">string</span>.IsNullOrEmpty(<span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;">this</span>.UserControlPath))
{ <span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;">this</span>.UserControl <span style="color: Red; background-color: Transparent; font-family: Courier New; font-size: 11px;">=</span> (T)<span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;">this</span>.Page.LoadControl(<span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;">this</span>.UserControlPath); <span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;">this</span>.UserControl.ID <span style="color: Red; background-color: Transparent; font-family: Courier New; font-size: 11px;">=</span><span style="color: rgb(102, 102, 102); background-color: rgb(228, 228, 228); font-family: Courier New; font-size: 11px;">"uc"</span>; <span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;">this</span>.Controls.Add(<span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;">this</span>.UserControl);
} } <span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;">protected</span><span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;">override</span><span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;">void</span> OnLoad(EventArgs
e) { <span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;">base</span>.OnLoad(e);
EnsureChildControls(); } <span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;">protected</span><span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;">override</span><span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;">void</span> Render(HtmlTextWriter
writer) { <span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;">if</span> (<span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;">this</span>.UserControl
!<span style="color: Red; background-color: Transparent; font-family: Courier New; font-size: 11px;">=</span><span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;">null</span>)
{ <span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;">this</span>.UserControl.RenderControl(writer);
} <span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;">else</span> {
writer.Write(<span style="color: rgb(102, 102, 102); background-color: rgb(228, 228, 228); font-family: Courier New; font-size: 11px;">"UserControlPath
is an invalid path, it must point to a valid .ascx file"</span>); } }</span></pre>To
use this class you can just subclass it and implement the abstract property to define
the path to the ascx file as follows.<br /><br /><pre><span style="color: Black; background-color: Transparent; font-family: Courier New; font-size: 11px;"><span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;">public</span><span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;">class</span> MyWebPartUserControl
: UserControl { } <span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;">public</span><span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;">class</span> MyWebPart
: UserControlWebPart&lt;MyWebPartUserControl&gt; {     <span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;">protected</span><span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;">override</span><span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;">string</span> UserControlPath
    {         get { <span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;">return</span><span style="color: rgb(102, 102, 102); background-color: rgb(228, 228, 228); font-family: Courier New; font-size: 11px;">"~/_controltemplates/my.user.controls/mywebpartusercontrol.ascx"</span>;
}     } }</span></pre>The MyWebPartUserControl is the code-behind
for the ascx file specified for the abstract UserControlPath property, this file requires
a fully qualified assembly path to work correctly within sharepoint as follows.<br /><pre><span style="color: Black; background-color: Transparent; font-family: Courier New; font-size: 11px;">&lt;%@
Assembly Name=<span style="color: rgb(102, 102, 102); background-color: rgb(228, 228, 228); font-family: Courier New; font-size: 11px;">"My.Assembly,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=1234abcd1234abcd"</span> %&gt; &lt;%@
Control Language=<span style="color: rgb(102, 102, 102); background-color: rgb(228, 228, 228); font-family: Courier New; font-size: 11px;">"C#"</span> Inherits=<span style="color: rgb(102, 102, 102); background-color: rgb(228, 228, 228); font-family: Courier New; font-size: 11px;">"My.Assembly.MyWebPartUserControl"</span> %&gt;</span></pre><p></p><img width="0" height="0" src="http://www.fluxtah.com/aggbug.ashx?id=d0dc280e-2600-4617-b32a-967223e4ade3" /></body>
      <title>SharePoint User Controls and Web Parts</title>
      <guid isPermaLink="false">http://www.fluxtah.com/PermaLink,guid,d0dc280e-2600-4617-b32a-967223e4ade3.aspx</guid>
      <link>http://www.fluxtah.com/2009/12/17/SharePointUserControlsAndWebParts.aspx</link>
      <pubDate>Thu, 17 Dec 2009 11:34:00 GMT</pubDate>
      <description>Its common practice to use a user control in a web part via LoadControl(...). By doing this you get the ASP.NET designer experience when working with .ascx files.&lt;br&gt;
&lt;br&gt;
After seeing some implementations of encapsulating a user control in a web part, I
created a version that uses a generic base class that has the benefits of giving strongly
typed access to the user control, the class is as follows.&lt;br&gt;
&lt;pre&gt;&lt;span style="color: Black; background-color: Transparent; font-family: Courier New; font-size: 11px;"&gt;&lt;span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;"&gt;public&lt;/span&gt; &lt;span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;"&gt;abstract&lt;/span&gt; &lt;span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;"&gt;class&lt;/span&gt; UserControlWebPart&amp;lt;T&amp;gt;
: WebPart where T : UserControl { &lt;span style="color: Green; background-color: Transparent; font-family: Courier New; font-size: 11px;"&gt;///
&amp;lt;summary&amp;gt;&lt;/span&gt; &lt;span style="color: Green; background-color: Transparent; font-family: Courier New; font-size: 11px;"&gt;///
The control in the ASCX file&lt;/span&gt; &lt;span style="color: Green; background-color: Transparent; font-family: Courier New; font-size: 11px;"&gt;///
&amp;lt;/summary&amp;gt;&lt;/span&gt; &lt;span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;"&gt;protected&lt;/span&gt; T
UserControl { get; set; } &lt;span style="color: Green; background-color: Transparent; font-family: Courier New; font-size: 11px;"&gt;///
&amp;lt;summary&amp;gt;&lt;/span&gt; &lt;span style="color: Green; background-color: Transparent; font-family: Courier New; font-size: 11px;"&gt;///
Path to the ASCX file&lt;/span&gt; &lt;span style="color: Green; background-color: Transparent; font-family: Courier New; font-size: 11px;"&gt;///
&amp;lt;/summary&amp;gt;&lt;/span&gt; &lt;span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;"&gt;protected&lt;/span&gt; &lt;span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;"&gt;abstract&lt;/span&gt; &lt;span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;"&gt;string&lt;/span&gt; UserControlPath
{ get; } &lt;span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;"&gt;protected&lt;/span&gt; &lt;span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;"&gt;override&lt;/span&gt; &lt;span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;"&gt;void&lt;/span&gt; CreateChildControls()
{ &lt;span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;"&gt;base&lt;/span&gt;.CreateChildControls(); &lt;span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;"&gt;if&lt;/span&gt; (!&lt;span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;"&gt;string&lt;/span&gt;.IsNullOrEmpty(&lt;span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;"&gt;this&lt;/span&gt;.UserControlPath))
{ &lt;span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;"&gt;this&lt;/span&gt;.UserControl &lt;span style="color: Red; background-color: Transparent; font-family: Courier New; font-size: 11px;"&gt;=&lt;/span&gt; (T)&lt;span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;"&gt;this&lt;/span&gt;.Page.LoadControl(&lt;span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;"&gt;this&lt;/span&gt;.UserControlPath); &lt;span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;"&gt;this&lt;/span&gt;.UserControl.ID &lt;span style="color: Red; background-color: Transparent; font-family: Courier New; font-size: 11px;"&gt;=&lt;/span&gt; &lt;span style="color: rgb(102, 102, 102); background-color: rgb(228, 228, 228); font-family: Courier New; font-size: 11px;"&gt;"uc"&lt;/span&gt;; &lt;span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;"&gt;this&lt;/span&gt;.Controls.Add(&lt;span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;"&gt;this&lt;/span&gt;.UserControl);
} } &lt;span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;"&gt;protected&lt;/span&gt; &lt;span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;"&gt;override&lt;/span&gt; &lt;span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;"&gt;void&lt;/span&gt; OnLoad(EventArgs
e) { &lt;span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;"&gt;base&lt;/span&gt;.OnLoad(e);
EnsureChildControls(); } &lt;span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;"&gt;protected&lt;/span&gt; &lt;span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;"&gt;override&lt;/span&gt; &lt;span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;"&gt;void&lt;/span&gt; Render(HtmlTextWriter
writer) { &lt;span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;"&gt;if&lt;/span&gt; (&lt;span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;"&gt;this&lt;/span&gt;.UserControl
!&lt;span style="color: Red; background-color: Transparent; font-family: Courier New; font-size: 11px;"&gt;=&lt;/span&gt; &lt;span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;"&gt;null&lt;/span&gt;)
{ &lt;span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;"&gt;this&lt;/span&gt;.UserControl.RenderControl(writer);
} &lt;span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;"&gt;else&lt;/span&gt; {
writer.Write(&lt;span style="color: rgb(102, 102, 102); background-color: rgb(228, 228, 228); font-family: Courier New; font-size: 11px;"&gt;"UserControlPath
is an invalid path, it must point to a valid .ascx file"&lt;/span&gt;); } }&lt;/span&gt;&lt;/pre&gt;To
use this class you can just subclass it and implement the abstract property to define
the path to the ascx file as follows.&lt;br&gt;
&lt;br&gt;
&lt;pre&gt;&lt;span style="color: Black; background-color: Transparent; font-family: Courier New; font-size: 11px;"&gt;&lt;span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;"&gt;public&lt;/span&gt; &lt;span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;"&gt;class&lt;/span&gt; MyWebPartUserControl
: UserControl { } &lt;span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;"&gt;public&lt;/span&gt; &lt;span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;"&gt;class&lt;/span&gt; MyWebPart
: UserControlWebPart&amp;lt;MyWebPartUserControl&amp;gt; { &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;"&gt;protected&lt;/span&gt; &lt;span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;"&gt;override&lt;/span&gt; &lt;span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;"&gt;string&lt;/span&gt; UserControlPath
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{ &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;get { &lt;span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;"&gt;return&lt;/span&gt; &lt;span style="color: rgb(102, 102, 102); background-color: rgb(228, 228, 228); font-family: Courier New; font-size: 11px;"&gt;"~/_controltemplates/my.user.controls/mywebpartusercontrol.ascx"&lt;/span&gt;;
} &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;} }&lt;/span&gt;&lt;/pre&gt;The MyWebPartUserControl is the code-behind
for the ascx file specified for the abstract UserControlPath property, this file requires
a fully qualified assembly path to work correctly within sharepoint as follows.&lt;br&gt;
&lt;pre&gt;&lt;span style="color: Black; background-color: Transparent; font-family: Courier New; font-size: 11px;"&gt;&amp;lt;%@
Assembly Name=&lt;span style="color: rgb(102, 102, 102); background-color: rgb(228, 228, 228); font-family: Courier New; font-size: 11px;"&gt;"My.Assembly,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=1234abcd1234abcd"&lt;/span&gt; %&amp;gt; &amp;lt;%@
Control Language=&lt;span style="color: rgb(102, 102, 102); background-color: rgb(228, 228, 228); font-family: Courier New; font-size: 11px;"&gt;"C#"&lt;/span&gt; Inherits=&lt;span style="color: rgb(102, 102, 102); background-color: rgb(228, 228, 228); font-family: Courier New; font-size: 11px;"&gt;"My.Assembly.MyWebPartUserControl"&lt;/span&gt; %&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.fluxtah.com/aggbug.ashx?id=d0dc280e-2600-4617-b32a-967223e4ade3" /&gt;</description>
      <comments>http://www.fluxtah.com/CommentView,guid,d0dc280e-2600-4617-b32a-967223e4ade3.aspx</comments>
      <category>Sharepoint</category>
    </item>
    <item>
      <trackback:ping>http://www.fluxtah.com/Trackback.aspx?guid=6f3b62ba-9f1c-4ebc-a577-4ec46b9f9b79</trackback:ping>
      <pingback:server>http://www.fluxtah.com/pingback.aspx</pingback:server>
      <pingback:target>http://www.fluxtah.com/PermaLink,guid,6f3b62ba-9f1c-4ebc-a577-4ec46b9f9b79.aspx</pingback:target>
      <dc:creator>Fluxtah</dc:creator>
      <wfw:comment>http://www.fluxtah.com/CommentView,guid,6f3b62ba-9f1c-4ebc-a577-4ec46b9f9b79.aspx</wfw:comment>
      <wfw:commentRss>http://www.fluxtah.com/SyndicationService.asmx/GetEntryCommentsRss?guid=6f3b62ba-9f1c-4ebc-a577-4ec46b9f9b79</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
I created a custom content type and list definition, after upgrading my sharepoint
solution I could see the list and content types under the new menu but when creating
a new item, the fields were missing from NewForm.aspx
</p>
        <p>
I discovered that it was due to the ContentType definition not having the FieldRefs
tag, my content type was defined like this:-
</p>
        <p>
          <font face="Courier New">  &lt;ContentType ID="0x01001376F571B0DB9D4E9384D2927DC110CF02"
Name="News Article" Group="Vodafone LCD Content Types" Version="0"&gt;<br />
  &lt;/ContentType&gt;</font>
        </p>
        <p>
When it should have been like this:-
</p>
        <p>
          <font face="Courier New">  &lt;ContentType ID="0x01001376F571B0DB9D4E9384D2927DC110CF02"
Name="News Article" Group="Vodafone LCD Content Types" Version="0"&gt;<br />
    &lt;FieldRefs&gt;<br />
    &lt;/FieldRefs&gt;<br />
  &lt;/ContentType&gt;</font>
        </p>
        <img width="0" height="0" src="http://www.fluxtah.com/aggbug.ashx?id=6f3b62ba-9f1c-4ebc-a577-4ec46b9f9b79" />
      </body>
      <title>Sharepoint missing fields in NewForm for custom list definition and content type</title>
      <guid isPermaLink="false">http://www.fluxtah.com/PermaLink,guid,6f3b62ba-9f1c-4ebc-a577-4ec46b9f9b79.aspx</guid>
      <link>http://www.fluxtah.com/2009/12/16/SharepointMissingFieldsInNewFormForCustomListDefinitionAndContentType.aspx</link>
      <pubDate>Wed, 16 Dec 2009 08:38:54 GMT</pubDate>
      <description>&lt;p&gt;
I created a custom content type and list definition, after upgrading my sharepoint
solution I could see the list and content types under the new menu but when creating
a new item, the fields were missing from NewForm.aspx
&lt;/p&gt;
&lt;p&gt;
I discovered that it was due to the ContentType definition not having the FieldRefs
tag, my content type was defined like this:-
&lt;/p&gt;
&lt;p&gt;
&lt;font face="Courier New"&gt;&amp;nbsp; &amp;lt;ContentType ID="0x01001376F571B0DB9D4E9384D2927DC110CF02"
Name="News Article" Group="Vodafone LCD Content Types" Version="0"&amp;gt;&lt;br&gt;
&amp;nbsp; &amp;lt;/ContentType&amp;gt;&lt;/font&gt;
&lt;/p&gt;
&lt;p&gt;
When it should have been like this:-
&lt;/p&gt;
&lt;p&gt;
&lt;font face="Courier New"&gt;&amp;nbsp; &amp;lt;ContentType ID="0x01001376F571B0DB9D4E9384D2927DC110CF02"
Name="News Article" Group="Vodafone LCD Content Types" Version="0"&amp;gt;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;FieldRefs&amp;gt;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/FieldRefs&amp;gt;&lt;br&gt;
&amp;nbsp; &amp;lt;/ContentType&amp;gt;&lt;/font&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.fluxtah.com/aggbug.ashx?id=6f3b62ba-9f1c-4ebc-a577-4ec46b9f9b79" /&gt;</description>
      <comments>http://www.fluxtah.com/CommentView,guid,6f3b62ba-9f1c-4ebc-a577-4ec46b9f9b79.aspx</comments>
      <category>Sharepoint</category>
    </item>
  </channel>
</rss>