when want to edit data see last value (no value that i enter now)
<p>I fill textboxes with data that i get from database and put a button on page that user can edit data and click on this button then from code behind i set changes to database</p>

<p>but when i want to send data (for example <code>txtName.Text</code> that source value  is "John" and i change it to "Tom") to database i see <code>txtName.Text</code> is "John" (means last value no new value)</p>

<p>why?</p>

<pre><code>//Load Data
protected void Page_Load(object sender, EventArgs e)
{ 
      DataSet ds = ....
      txtName.Text = ds.Tables[0].Rows[0][1].ToString();
}

//Update
protected void reg_Click(object sender, EventArgs e)
{
     string name=txtName.Text;
     //i change value of txtName.Text but see value as same as value in ds.Tables[0].Rows[0][1].ToString() that i select from DB
}
</code></pre>
