BTW, which programming language do you use ? (lloks you'll need a sample)
--
Patrice
"Nathan Sokalski" <njsok...@hotmail.com> a �crit dans le message de
news:OX8p9vER...@TK2MSFTNGP04.phx.gbl...
A simple solution to this problem is to handle the TextChanged event on the
TextBox.
In your repeater, set the OnTextChanged property to an event handler method
in your code-behind.
<asp:Repeater ID="rptData" runat="server">
<ItemTemplate>
<asp:TextBox runat="server" Text=<%#
Container.DataItem.ToString() %> OnTextChanged="TextChanged"
AutoPostBack="true" />
</ItemTemplate>
</asp:Repeater>
In your code behind, have something like the following (I hope c# is ok).
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
string[] data = new string[] { "s1", "s2" };
this.rptData.DataSource = data;
this.rptData.DataBind();
}
}
protected void TextChanged(object sender, EventArgs e)
{
TextBox textbox = sender as TextBox;
Debug.WriteLine("New text: " + textbox.Text);
}
Remember to only Databind the repeater if the request is not a postback,
otherwise the TextChanged won't be fired and the new value will be lost.
Regards,
--
Phil Harvey
www.anotherblog.com
"Phil Harvey" <PhilH...@discussions.microsoft.com> wrote in message
news:5D4B1F50-58D2-465B...@microsoft.com...
If you did please tell mehow can I do that?