title: Removing characters from string in Eval
body: <p>I'm trying to remove the last 2 characters of the string in my .NET code which uses Eval to get the string name. This code isn't right, but it's the idea of what I am trying to do.</p>
  
  <p>.Net code where my DataKeyName = test:</p>
  
  <pre><code> NavigateUrl ='&lt;%#"~/example.aspx?test=" + ((string)Eval("test")).Remove(Eval("test").length -2)) %&gt;' 
  </code></pre>
  
  <p>That's clearly wrong, but hopefully conveys what I'm trying to do. So if test = hello!!, I want my navigateURL to be /example.aspx?test=hello (the last 2 characters, !! in this case, is removed)</p>