<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Height="200px" Width="300px">
<telerik:RadTextBox ID="RadTextBox1" runat="server"></telerik:RadTextBox>
<asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_Click" /><br />
</telerik:RadAjaxPanel>
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="Button1">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="RadAjaxPanel1" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
Codebehind:
protected void Button1_Click(object sender, EventArgs e) {
Button1.Text = RadTextBox1.Text;
}
The first time the button is clicked, the text from the RadTextBox is set as the button's caption. Any subsequent edit of the box and click on the button will not update the button caption - the value returned from the RadTextBox1.Text stays the same as the first click. What am I doing wrong?
Regards,
Arild
