Manath Pathana

Manath Pathana

  • NA
  • 129
  • 0

ajaxToolkit:NumericUpDownExtender

May 8 2009 10:40 PM
Hi all
Can resolve me one problem with ajaxToolkit:NumericUpDownExtender.
When I used this tool in web and press down and up it change value in textbox.
and when it change value in textbox i want change value of label by textbox.
i used AutoPostBack and OnTextChange event. But problem is it not do process.
I don't know how to do it.
Please tell me about this code and how to do it .
Thank Advanve.

See this code that i write

In aspx.cs:


        protected void TextBox1_TextChanged(object sender, EventArgs e)
        {
                Label1.Text = TextBox1.Text;
        }

In aspx:


        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
                  <asp:TextBox ID="TextBox1" runat="server" AutoPostBack="True"
            ontextchanged="TextBox1_TextChanged"></asp:TextBox>
        <cc1:NumericUpDownExtender ID="TextBox1_NumericUpDownExtender" runat="server"
            Enabled="True" Maximum="1100" Minimum="1" RefValues="" ServiceDownMethod=""
            ServiceDownPath="" ServiceUpMethod="" Tag="" TargetButtonDownID=""
            TargetButtonUpID="" TargetControlID="TextBox1" Width="100">
        </cc1:NumericUpDownExtender>
        <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
       
        </ContentTemplate>
       
        </asp:UpdatePanel>