How to display string with maximum of 200 characters & trim the last few charaters till whitespace
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/1613896/truncate-string-on-whole-words-in-net-c-sharp">Truncate string on whole words in .Net C#</a>  </p>
</blockquote>



<p>I have to display brief description of the news let us say maximum of 200 characters &amp; trim the last few characters till white-space, I am not sure how i can trip this kind on string </p>

<p>Sample text </p>

<p><code>sample news description of news sample news description of news sample news description of news sample news description of news sample news description of news sample news description of news sample news description of news.</code></p>

<p><strong>OUTPUT with code below</strong></p>

<p><code>sample news description of news sample news description of news sample news description of news sample news description of news sample news description of news sample news description of news sample n</code></p>

<pre><code>    if (sDesc.Length &gt; 200)
    {
        sDesc = sDesc.Substring(0, 200);
       // sDesc = sDesc + "...";
    }
</code></pre>

<p>how can i trim last few characters so that it doesn't show part of word. I hope you have understood what i am trying to say.</p>

<p><strong>Desired OUTPUT</strong></p>

<p>sample news description of news sample news description of news sample news description of news sample news description of news sample news description of news sample news description of news sample</p>
