Inconsistencies When Accessing DataBound Item Controls
<p>Essentially, my question is this: There are two ways that I have experienced setting values to databound controls. Either this way:</p>

<pre><code>&lt;asp:Label runat="server" id="MyLabel"&gt;&lt;%#DataBinder.Eval(Container.DataItem, "MyValue")%&gt;&lt;/asp:Label&gt;
</code></pre>

<p>Or this way:</p>

<pre><code>&lt;asp:Label runat="server" id="MyLabel" text=&lt;%#DataBinder.Eval(Container.DataItem, "MyValue")%&gt; /&gt;
</code></pre>

<p>When trying to access items in an event handler (outside of the method that this databinding is occuring) using the first method, MyLabel.Text is an empty string. However, using the second way, MyLabel.Text will equal "MyValue". Can anyone tell me why this happens?</p>
