Javascript function not displaying values or writing them to textbox
<p>Basically I am creating a simple function in javascript to check if a textbox value has changed from what it was originally and if so to warn the user the impact the change will have.  If the user clicks yes, do nothing, if they click no then I want to set the value of the textbox back to the original value it should be for them.</p>

<p><em>EDIT</em></p>

<p>Okay it seems I was mistaken as to the root of the problem.  It seems that the inpUsername which is a hidden input I have is blank from the beginning.  How do I set it correctly in the asp portion of the code so it takes the value of another textbox on the same control?</p>

<p>I currently have:</p>

<pre><code>&lt;input type="hidden" id="inpUsername" runat="server" value=
%#DataBinder.Eval(Container.DataItem,"txtUsername")%&gt; /&gt;
</code></pre>

<p>This returns the error:  BC30456: 'DataItem' is not a member of 'System.Web.UI.Control'.  However if I add additional quotes around the value it outputs "/> to the screen</p>

<p>The txtUsername declaration as requested is:</p>

<pre><code>&lt;asp:TextBox ID="txtUsername" runat="server" CssClass="Textbox" Style="width:100%" 
onchange="checkForUsernameChange()"/&gt;
</code></pre>
