title: Find edited textbox value inside DataItemTemplate on Button click event
body: <p>I want to get the edited value in the textbox on a button click event. I have tried this code</p>
  
  <pre><code>string Value = gvSample.GetRowValues(i, "Word").ToString();
  </code></pre>
  
  <p>but it gives me the old value of the textbox.</p>
  
  <p>I also tried</p>
  
  <pre><code>TextBox txtTrans = (TextBox)gvSample.FindControl("txtSample");
  </code></pre>
  
  <p><code>string Value = txtTrans.Text;</code></p>
  
  <p>but txtTrans always returns NULL.</p>
  
  <p>Please help.</p>