Problem with NumericUpDownExtender


Joined
Dec 13, 2010
Messages
1
Reaction score
0
Hello,
I have a AJAX NumericUpDownExtender and Text box dependent on this . I want when I clicked on the button text of Textbox dependent on the NumericUpDownExtender transfer to another textbox .
Iwrite this code:

</cc1:NumericUpDownExtender>
<cc1:NumericUpDownExtender ID="NumericUpDownExtender2" runat="server" Enabled="True"
Maximum="1.7976931348623157E+308" Minimum="-1.7976931348623157E+308" RefValues=""
ServiceDownMethod="" ServiceDownPath="" ServiceUpMethod="" Tag="" TargetButtonDownID="desc2"
TargetButtonUpID="asc2" TargetControlID="TextBox2" Width="0">
</cc1:NumericUpDownExtender>

<asp:TextBox ID="TextBox2" runat="server" ReadOnly="True" Text="1389" Width="40px"></asp:TextBox>

<asp:ImageButton ID="asc2" runat="server" Height="20px" ImageUrl="~/images/asc.gif"
Width="10px" />

<asp:ImageButton ID="desc2" runat="server" Height="20px" ImageUrl="~/images/desc.gif"
Width="10px" />


and in the C# page:
protected void Button1_Click(object sender, EventArgs e)
{
TextBox5.Text = TextBox2.Text;
}

but this code doesn't work correctly.when TextBox2.Text chenged by NumericUpDownExtender 2 , in the TextBox5 display 1389.why?
Thanks for any help.
 
Ad

Advertisements


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top