Using Bind in TextBox renders bound data outside the TextBox control
<p>I have a ListView (in an update panel) bound to an ObjectDataSource (connected to an NHibernate object) and in the EditItemTemplate I use Text='&lt;%# Bind("HideLocation")%>' to bind to a string property of the object.</p>

<p>When I click edit (twice, another issue I'm having) and view the code in Chrome, the output looks like this:</p>

<pre><code>&lt;div class="InputLine InputLineLevel2"&gt;
    &lt;div class="InputLabel"&gt;Hide Location:&lt;/div&gt;
    &lt;div class="InputControl"&gt;
     "
                        In locker 2317"
        &lt;input 
            name="ctl00$MainContentPlaceholder$ItemDetailsListView$ctrl0$txtItemHideLocation"
            type="text"
            maxlength="128"
            id="ctl00_MainContentPlaceholder_ItemDetailsListView_ctrl0_txtItemHideLocation"
            style="width:300px;"&gt;
    &lt;/div&gt;
&lt;/div&gt;
</code></pre>

<p>The .aspx code looks like this:</p>

<pre><code> &lt;asp:UpdatePanel ID="ItemDetailsUpdatePanel" UpdateMode="Always" runat="server"&gt;
    &lt;asp:ListView ID="ItemDetailsListView" runat="server" ...&gt;
         &lt;EditItemTemplate&gt;
             &lt;fieldset class="FieldsetLevel2"&gt;
             &lt;legend&gt;Edit Item: &lt;%# Eval("SearchItem.SearchItemName") %&gt;&lt;/legend&gt;
                 &lt;div class="InputLine InputLineLevel2"&gt;
                     &lt;div class="InputLabel"&gt;Hide Location:&lt;/div&gt;
                     &lt;div class="InputControl"&gt;
                         &lt;asp:TextBox ID="txtItemHideLocation" Width="300px"
                             Text='&lt;%# Bind("HideLocation")%&gt;'
                             runat="server"&gt;&lt;/asp:TextBox&gt;
                     &lt;/div&gt;
                 &lt;/div&gt;
... a bunch of other controls &amp; end tags
</code></pre>

<p>Any ideas why the value of the bound data (in this case: In locker 2317) is showing up outside of the text box instead of as the contents of the data?  </p>
