<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" 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:copyright="http://blogs.law.harvard.edu/tech/rss" xmlns:image="http://purl.org/rss/1.0/modules/image/">
    <channel>
        <title>WSS</title>
        <link>http://geekswithblogs.net/shehan/category/8421.aspx</link>
        <description>WSS</description>
        <language>en-US</language>
        <copyright>shehan</copyright>
        <managingEditor>digitalshehan@gmail.com</managingEditor>
        <generator>Subtext Version 0.0.0.0</generator>
        <item>
            <title>Get all replies to a discussion</title>
            <link>http://geekswithblogs.net/shehan/archive/2009/10/10/get-all-replies-to-a-discussion.aspx</link>
            <description>&lt;p&gt;A discussion list in unlike a normal list in that it consists of two content types  - a Discussion content type that maps to the discussion topic and a Message that maps to all replies to the topic. If you examine the Discussion content type you’ll see that its inherited from the Folder content type.&lt;/p&gt;  &lt;p&gt;The reply contains a field called ‘ParentFolderId’ and as the name suggests it holds the ID of the discussion topic. So naturally if you were to do a query on the list for all items with the same ParentFolderId you would expect the query to work. However, since the topic is of a folder content type and the replies are contained within the ‘folder’ you would need to set the  queries ViewAttributes property to "Scope='Recursive'" for it to return results.&lt;/p&gt;  &lt;p&gt;Below is an example using the object model:&lt;/p&gt;  &lt;div class="csharpcode"&gt;   &lt;pre class="alt"&gt;SPQuery query = &lt;span class="kwrd"&gt;new&lt;/span&gt; SPQuery();&lt;/pre&gt;

  &lt;pre&gt;query.ViewAttributes = &lt;span class="str"&gt;"Scope='Recursive'"&lt;/span&gt;;&lt;/pre&gt;

  &lt;pre class="alt"&gt;StringBuilder queryString = &lt;span class="kwrd"&gt;new&lt;/span&gt; StringBuilder();&lt;/pre&gt;

  &lt;pre&gt;queryString.Append(&lt;span class="str"&gt;"         &amp;lt;Where&amp;gt;"&lt;/span&gt;);&lt;/pre&gt;

  &lt;pre class="alt"&gt;queryString.Append(&lt;span class="str"&gt;"              &amp;lt;And&amp;gt;"&lt;/span&gt;);&lt;/pre&gt;

  &lt;pre&gt;queryString.Append(&lt;span class="str"&gt;"                        &amp;lt;Eq&amp;gt;"&lt;/span&gt;);&lt;/pre&gt;

  &lt;pre class="alt"&gt;queryString.Append(&lt;span class="str"&gt;"                             &amp;lt;FieldRef Name=\"ContentType\" /&amp;gt;"&lt;/span&gt;);&lt;/pre&gt;

  &lt;pre&gt;queryString.Append(&lt;span class="str"&gt;"                             &amp;lt;Value Type=\"Text\"&amp;gt;Message&amp;lt;/Value&amp;gt;"&lt;/span&gt;);&lt;/pre&gt;

  &lt;pre class="alt"&gt;queryString.Append(&lt;span class="str"&gt;"                        &amp;lt;/Eq&amp;gt;"&lt;/span&gt;);&lt;/pre&gt;

  &lt;pre&gt;queryString.Append(&lt;span class="str"&gt;"                        &amp;lt;Eq&amp;gt;"&lt;/span&gt;);&lt;/pre&gt;

  &lt;pre class="alt"&gt;queryString.Append(&lt;span class="str"&gt;"                             &amp;lt;FieldRef Name=\"ParentFolderId\" /&amp;gt;"&lt;/span&gt;);&lt;/pre&gt;

  &lt;pre&gt;queryString.Append(&lt;span class="str"&gt;"                             &amp;lt;Value Type=\"Number\"&amp;gt;99&amp;lt;/Value&amp;gt;"&lt;/span&gt;); &lt;span class="rem"&gt;//NOTE: change this to the value you need&lt;/span&gt;&lt;/pre&gt;

  &lt;pre class="alt"&gt;queryString.Append(&lt;span class="str"&gt;"                        &amp;lt;/Eq&amp;gt;"&lt;/span&gt;);&lt;/pre&gt;

  &lt;pre&gt;queryString.Append(&lt;span class="str"&gt;"              &amp;lt;/And&amp;gt;"&lt;/span&gt;);&lt;/pre&gt;

  &lt;pre class="alt"&gt;queryString.Append(&lt;span class="str"&gt;"         &amp;lt;/Where&amp;gt;"&lt;/span&gt;);&lt;/pre&gt;

  &lt;pre&gt;query.Query = queryString.ToString();&lt;/pre&gt;

  &lt;pre class="alt"&gt;DataTable replyTable = discussionList.GetItems(query).GetDataTable();&lt;/pre&gt;
&lt;/div&gt;
&lt;style type="text/css"&gt;&lt;![CDATA[

.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }]]&gt;&lt;/style&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt; &lt;/p&gt;

&lt;div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:427cc8ce-2140-4c4a-ae38-c6e36570310b" class="wlWriterEditableSmartContent"&gt;Technorati Tags: &lt;a href="http://technorati.com/tags/Discussion" rel="tag"&gt;Discussion&lt;/a&gt;,&lt;a href="http://technorati.com/tags/Replies" rel="tag"&gt;Replies&lt;/a&gt;,&lt;a href="http://technorati.com/tags/CAML" rel="tag"&gt;CAML&lt;/a&gt;,&lt;a href="http://technorati.com/tags/SharePoint" rel="tag"&gt;SharePoint&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=135471"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=135471" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/shehan/aggbug/135471.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>shehan</dc:creator>
            <guid>http://geekswithblogs.net/shehan/archive/2009/10/10/get-all-replies-to-a-discussion.aspx</guid>
            <pubDate>Sat, 10 Oct 2009 15:40:00 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/shehan/comments/135471.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/shehan/archive/2009/10/10/get-all-replies-to-a-discussion.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/shehan/comments/commentRss/135471.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/shehan/services/trackbacks/135471.aspx</trackback:ping>
        </item>
        <item>
            <title>Deploying Web Parts to farms with more than 1 WFE</title>
            <link>http://geekswithblogs.net/shehan/archive/2008/12/01/deploying-web-parts-to-farms-with-more-than-1-wfe.aspx</link>
            <description>&lt;p&gt;If you're developing webparts using &lt;a title="Windows SharePoint Services 3.0 Tools: Visual Studio 2008 Extensions" target="_blank" href="http://www.microsoft.com/downloads/details.aspx?FamilyID=7bf65b28-06e2-4e87-9bad-086e32185e68&amp;amp;displaylang=en"&gt;VSeWSS&lt;/a&gt; and going to run the setup.bat that that VSeWSS creates, you might need to modify the deploy solution line before running it.&lt;/p&gt;
&lt;p&gt;The &lt;em&gt;&lt;a target="_blank" href="http://technet.microsoft.com/en-us/library/cc262459.aspx"&gt;deploysolution&lt;/a&gt;&lt;/em&gt; instruction that VSeWSS adds contains the -&lt;em&gt;local&lt;/em&gt; argument. This is all good if you're going to run it on an implementation with only 1 WFE, but for farms with 2 or more WFE's then you will need to change &lt;em&gt;-local&lt;/em&gt; to &lt;em&gt;-immediate&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;I also make it a habit to call the &lt;em&gt;&lt;a target="_blank" href="http://technet.microsoft.com/en-us/library/cc262783.aspx"&gt;execadmsvcjobs&lt;/a&gt;&lt;/em&gt; command before and after adding and deploying.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;div style="margin: 0px; padding: 0px; display: inline;" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:943954cf-17c1-4605-b7d6-9f988115ca61" class="wlWriterSmartContent"&gt;Technorati Tags: &lt;a href="http://technorati.com/tags/WSS" rel="tag"&gt;WSS&lt;/a&gt;,&lt;a href="http://technorati.com/tags/MOSS" rel="tag"&gt;MOSS&lt;/a&gt;,&lt;a href="http://technorati.com/tags/VSeWSS" rel="tag"&gt;VSeWSS&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=127587"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=127587" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/shehan/aggbug/127587.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>shehan</dc:creator>
            <guid>http://geekswithblogs.net/shehan/archive/2008/12/01/deploying-web-parts-to-farms-with-more-than-1-wfe.aspx</guid>
            <pubDate>Tue, 02 Dec 2008 09:50:47 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/shehan/comments/127587.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/shehan/archive/2008/12/01/deploying-web-parts-to-farms-with-more-than-1-wfe.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/shehan/comments/commentRss/127587.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/shehan/services/trackbacks/127587.aspx</trackback:ping>
        </item>
        <item>
            <title>Manually uninstalling WSS</title>
            <link>http://geekswithblogs.net/shehan/archive/2008/07/23/manually-uninstalling-wss.aspx</link>
            <description>&lt;p&gt;Had a situation the other day where, after playing with the different installing options, WSS would not uninstall. Even running the repair option was of no help. &lt;/p&gt;  &lt;p&gt;Searching the net for solutions I came across &lt;a href="http://forums.techarena.in/small-business-server/987122.htm" target="_blank"&gt;this&lt;/a&gt;.&lt;/p&gt;  &lt;p&gt;Here are the steps I did:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Disable and Stop the following services (If any):&lt;/li&gt;    &lt;ul&gt;     &lt;li&gt;Windows SharePoint Services Administration&lt;/li&gt;      &lt;li&gt;Windows SharePoint Services Search&lt;/li&gt;      &lt;li&gt;Windows SharePoint Services Timer&lt;/li&gt;      &lt;li&gt;Windows SharePoint Services Tracing&lt;/li&gt;      &lt;li&gt;Windows SharePoint Services VSS Writer&lt;/li&gt;   &lt;/ul&gt; &lt;/ul&gt;  &lt;p&gt; &lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Backup and then delete the following registry hives:&lt;/li&gt;    &lt;ul&gt;     &lt;li&gt;HKLM\Software\Microsoft\Shared Tools\Web Server Extensions\12.0&lt;/li&gt;      &lt;li&gt;HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\WSS&lt;/li&gt;   &lt;/ul&gt; &lt;/ul&gt;  &lt;p&gt; &lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Delete the following folders:&lt;/li&gt;    &lt;ul&gt;     &lt;li&gt;C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12&lt;/li&gt;   &lt;/ul&gt; &lt;/ul&gt;  &lt;p&gt; &lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Reinstall IIS&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt; &lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Drop the Config and any Content DB's created&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt; &lt;/p&gt;  &lt;p&gt;After following the steps above you will notice that the entry for WSS in Add &amp;amp; Removed Programs is no longer there. Now you can go-ahead and run the installation again.&lt;/p&gt;  &lt;p&gt; &lt;/p&gt;  &lt;div class="wlWriterSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:334183b5-7a78-4273-b763-a79605c4c041" style="padding-right: 0px; display: inline; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px"&gt;Technorati Tags: &lt;a href="http://technorati.com/tags/SharePoint" rel="tag"&gt;SharePoint&lt;/a&gt;,&lt;a href="http://technorati.com/tags/WSS" rel="tag"&gt;WSS&lt;/a&gt;,&lt;a href="http://technorati.com/tags/uninstall" rel="tag"&gt;uninstall&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=123965"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=123965" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/shehan/aggbug/123965.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>shehan</dc:creator>
            <guid>http://geekswithblogs.net/shehan/archive/2008/07/23/manually-uninstalling-wss.aspx</guid>
            <pubDate>Thu, 24 Jul 2008 03:04:33 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/shehan/comments/123965.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/shehan/archive/2008/07/23/manually-uninstalling-wss.aspx#feedback</comments>
            <slash:comments>1</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/shehan/comments/commentRss/123965.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/shehan/services/trackbacks/123965.aspx</trackback:ping>
        </item>
        <item>
            <title>Truncate the characters displayed in a blog post</title>
            <link>http://geekswithblogs.net/shehan/archive/2008/07/08/truncate-the-characters-displayed-in-a-blog-post.aspx</link>
            <description>&lt;p&gt;This is how to reduce the number of characters displayed in a blog post on the default.aspx page of a blog site created from the OOTB SharePoint blog template.&lt;/p&gt;
&lt;ul&gt;
    &lt;li&gt;Open up the site in SharePoint Designer&lt;/li&gt;
    &lt;li&gt;Open the default.aspx and switch to Code View&lt;/li&gt;
    &lt;li&gt;Perform a Find &amp;amp; Replace for the following:
    &lt;ul&gt;
        &lt;li&gt;Find-
        &lt;ul&gt;
            &lt;li&gt;
            &lt;pre class="csharpcode"&gt;&lt;span class="attr"&gt;&amp;amp;lt;&lt;/span&gt;Field Name="Body"/&lt;span class="attr"&gt;&amp;amp;gt;&lt;/span&gt;&lt;/pre&gt;
            &lt;/li&gt;
        &lt;/ul&gt;
        &lt;/li&gt;
        &lt;style type="text/css"&gt;&lt;![CDATA[csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }
]]&gt;&lt;/style&gt;
        &lt;li&gt;Replace-
        &lt;ul&gt;
            &lt;li&gt;
            &lt;pre class="csharpcode"&gt;&lt;span class="attr"&gt;&amp;amp;lt;&lt;/span&gt;Limit Len="99" IgnoreTags="TRUE" MoreText="..."&lt;span class="attr"&gt;&amp;amp;gt;&lt;/span&gt;&lt;span class="attr"&gt;&amp;amp;lt;&lt;/span&gt;Column Name=&lt;span class="attr"&gt;&amp;amp;quot;&lt;/span&gt;Body&lt;span class="attr"&gt;&amp;amp;quot;&lt;/span&gt;/&lt;span class="attr"&gt;&amp;amp;gt;&lt;/span&gt;&lt;span class="attr"&gt;&amp;amp;lt;&lt;/span&gt;/Limit&lt;span class="attr"&gt;&amp;amp;gt;&lt;/span&gt;&lt;/pre&gt;
            &lt;/li&gt;
        &lt;/ul&gt;
        &lt;/li&gt;
    &lt;/ul&gt;
    &lt;/li&gt;
&lt;/ul&gt;
&lt;pre class="csharpcode"&gt;&lt;span class="attr"&gt;&lt;/span&gt; &lt;/pre&gt;
&lt;pre class="csharpcode"&gt;&lt;a href="http://geekswithblogs.net/images/geekswithblogs_net/shehan/WindowsLiveWriter/Truncatethecharactersdisplayedinablogpos_D973/image_4.png"&gt;&lt;img height="447" border="0" width="582" style="border: 0px none ;" alt="image" src="http://geekswithblogs.net/images/geekswithblogs_net/shehan/WindowsLiveWriter/Truncatethecharactersdisplayedinablogpos_D973/image_thumb_1.png" /&gt;&lt;/a&gt; &lt;/pre&gt;
&lt;pre class="csharpcode"&gt; &lt;/pre&gt;
&lt;p&gt;This would limit the number of characters to 99 and display the text contained in the MoreText attribute as the last characters. Check out &lt;a href="http://msdn.microsoft.com/en-us/library/ms440854.aspx" target="_blank"&gt;this&lt;/a&gt; for more info on the Limit element.&lt;/p&gt;
&lt;p&gt;Do remember to back up the page before attempting this just in case.... ;)&lt;/p&gt;
&lt;style type="text/css"&gt;&lt;![CDATA[csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }
]]&gt;&lt;/style&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=123641"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=123641" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/shehan/aggbug/123641.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>shehan</dc:creator>
            <guid>http://geekswithblogs.net/shehan/archive/2008/07/08/truncate-the-characters-displayed-in-a-blog-post.aspx</guid>
            <pubDate>Tue, 08 Jul 2008 21:35:04 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/shehan/comments/123641.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/shehan/archive/2008/07/08/truncate-the-characters-displayed-in-a-blog-post.aspx#feedback</comments>
            <slash:comments>7</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/shehan/comments/commentRss/123641.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/shehan/services/trackbacks/123641.aspx</trackback:ping>
        </item>
    </channel>
</rss>