title: Edit Textbox in Repeater
body: <p>I have a repeater with a textbox inside. I am trying to edit the information inside the textbox, retrieve the new data, and write to the DB. With my code its giving me the original info that was in the box. Not the new information that I have added. Here is my code</p>
  
  <p>html:</p>
  
  <pre><code>&lt;asp:LinkButton id="saveReviewLinkButton" text="Save" runat="server" onCommand="saveReviewLinkButton_OnCommand" /&gt;
  &lt;table&gt;
   &lt;asp:Repeater id="ReviewRepeater" runat="server" onItemDataBound="ReviewRepeater_ItemDataBound"&gt;
              &lt;itemtemplate&gt;
                &lt;tr &gt;
                  &lt;td &gt;&lt;asp:TextBox id="titleLabel" runat="server" width="200px" textMode="MultiLine"/&gt;&lt;/td&gt;
                &lt;/tr&gt;
              &lt;/itemtemplate&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>c#:</p>
  
  <pre><code>protected void ReviewRepeater_ItemDataBound(object sender, RepeaterItemEventArgs e)
  {
    if ((e.Item.ItemType == ListItemType.Item) || (e.Item.ItemType == ListItemType.AlternatingItem))
      {
        Review review = (Review)e.Item.DataItem;
        TextBox titleLabel = (TextBox)e.Item.FindControl("titleLabel");
        titleLabel.Text = review.Title;
      }
  }
  
  
  
    protected void saveReviewLinkButton_OnCommand(object sender, EventArgs e)
    {
       TextBox titleLabel = new TextBox();
  
       foreach (RepeaterItem dataItem in ReviewRepeater.Items)
         {
            titleLabel = (TextBox)dataItem.FindControl("titleLabel");
            string newInfo = titleLabel.Text;
         }
    }
  </code></pre>