I have a question about how to perform a two-way databinding in an ASP.NET control (in this example a repeater control). The technology is Web Forms. My question is, where can I read the user's data after a postback? (See MyButton_Click below).
Markup:
<asp:Repeater runat="server" ID="MyRepeater"> <ItemTemplate> <asp:Label runat="server">Name: </asp:Label><asp:TextBox ID="MyTextBox" runat="server" Text='<%#Bind("Name") %>'></asp:TextBox><br/> </ItemTemplate> </asp:Repeater> <asp:Button runat="server" ID="MyButton" Text="Hit me" OnClick="MyButton_Click" /> Interface:

Code behind:
protected void Page_Load(object sender, EventArgs e) { MyRepeater.DataSource = ( from d in Data.GetData() select new { Name = d }).ToList(); MyRepeater.DataBind(); } protected void MyButton_Click(object sender, EventArgs e) { // Ok now, where is the user's changed data...? }