Right of a character in C#
<p>How do I get right(string) in C#?
if user="MyDomain\jKing"
I want just jking from the above string.          </p>

<pre><code>      int index;
      string user;

    index = User.Identity.Name.IndexOf("\\");
    user = (index &gt; 0 ? User.Identity.Name.Substring(0, index) : "");
</code></pre>
