How to get first character c#
<p>I want to convert following string</p>

<p>0-1-1-1-1-1-1-1-1-1-1-1-1-1-1-1-1-1-1-1-1-1-1-1-1-1-1-1-10-1-1-1-1-1-1-1-1-1-1-1-1-1-1-1-1-1-1-1-1-1-1-1-1-1-1-1-1 and so on</p>

<p>to</p>

<p>0 only</p>

<p>how can i do this
edit</p>

<p><strong>try</strong></p>

<pre><code>protected void rblist_SelectedIndexChanged(object sender, EventArgs e)
    {
        foreach (RepeaterItem item in Repeater1.Items)
        {
           RadioButtonList rblist = (RadioButtonList)item.FindControl("rbList");
           Panel p = (Panel)item.FindControl("pnlComment");
           string rbValue = rblist.SelectedIndex.ToString();
          char firstDigit = rbValue[0];

          Response.Write(firstDigit);

        }
    }
</code></pre>

<p></p>

<pre><code>  &lt;asp:ListItem Text ="Approved" Value="1" /&gt;
  &lt;asp:ListItem Text ="Approved With Comment" Value="2" /&gt;
  &lt;asp:ListItem Text ="Reject With Comment" Value="3" /&gt;


&lt;/asp:RadioButtonList&gt;
</code></pre>

<p>getting out put </p>

<pre><code>   1----------------------------1----------------------------
</code></pre>
