ASP.NET How to send Eval("") to javascript method for manipulating its value
<p>I have the following code which is working fine</p>

<pre><code>    &lt;asp:TemplateField&gt;
        &lt;ItemTemplate&gt;
            &lt;div runat="server" id="divFileName" class="divFileName" title='&lt;%# Eval("FileName")%&gt;'&gt;
                &lt;%# Eval("FileName")%&gt;&lt;/div&gt;
        &lt;/ItemTemplate&gt;
    &lt;/asp:TemplateField&gt;
</code></pre>

<p>the result of <code>Eval("FileName")</code> returns a full path string such as the following:</p>

<blockquote>
  <p>C:\Windows\Microsoft.NET\Framework\sbs_diasymreader.dll</p>
</blockquote>

<p>I would like in the client side to send <code>Eval("FileName");</code> to a javascript method that will crop <code>Eval("FileName");</code> value and will return the file name only without the full path. (for this example it should return <code>sbs_diasymreader.dll</code>)</p>

<p>The result of what i am trying to achieve is that eventually the table that currently contains full names with path, will display only the file without the path</p>

<p>How can this be done?</p>
