title: Using Eval("Name") in Function
body: <p>I'm using .NET webforms. I have a grid view that can use Eval("Name") in the markup and it works fine. However, I need to do some computations on it so in the code behind I made a method called FormatName(String name). I can use that in the markup and it works when I pass it a string but not when I when I try to use Eval("Name".</p>
  
  <p><code>&lt;%# Eval("Name") %&gt;</code> works <br>
  <code>&lt; %# FormatName("jim") %&gt;</code> works</p>
  
  <p>I'm looking for something like this: <br>
  <code>&lt;%# FormatName(Eval("Name"))&gt;%</code></p>
  
  <p>That doesnt work but I figure there is something close.</p>