Hyphen (-) in string bound to text input control in GridView with Eval("columnName") cuts off the text after the hyphen
<p>I have a GridView which is bound to a data source. In the .aspx file I use somthing like this</p>

<pre><code>&lt;asp:GridView...&gt;
    &lt;Columns&gt;
       &lt;asp:TemplateField&gt;
               &lt;ItemTemplate&gt;
                      &lt;input type="text" value='&lt;%# Eval('type') %&gt;'
...
&lt;/GridView&gt;
</code></pre>

<p>What happens is, when type="Rock'n'Roll - guitar" for example, after databinding the text in the input is cut off before the hyphen and on, so whats left is "Rock'n'Roll"</p>

<p>This also happend for the quotes ('), and i tried using </p>

<pre><code>&lt;input type="text" value='&lt;%# Server.HtmlEncode(Eval('type').ToString()) %&gt;'
</code></pre>

<p>which solved the issue with quote sign in the string but still have the issue with hyphen. </p>

<p>Any ideas? 
thanx</p>
