Ajax NumericUpdownExtender - How do I use it?

  • Thread starter Thread starter mark4asp
  • Start date Start date
M

mark4asp

Hi,

Does anyone understand how to get the NumericUpdownExtender working?
The documentation is very terse and there seems to be no tutorial or
example provided.

Help please.
 
control extenders as the name implies add client script features
(behaviors) to a control. they all have a TargetControlId which you set
to the id of the control you want to add the behavior to. In the case of
the NumericupdownExtender the target control should render as as a
<input type=text>.

if you download the source you get a sample website that explains each
control with a sample page.

-- bruce (sqlwork.com)
 
Hi,

Does anyone understand how to get the NumericUpdownExtender working?
The documentation is very terse and there seems to be no tutorial or
example provided.

Help please.

Part of the problem here is that as soon as one drops a
NumericUpDownExtender onto the page one gets as error. That puzzled me
at first.

Anyhow the simplest example I found is this:

<%@ Page Language="C#" AutoEventWireup="true"
CodeFile="Default2.aspx.cs" Inherits="Default2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<body>
<form id="frmMandates" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server" />
Month choice: <asp:TextBox ID="TextBox2" runat="server" Text="June"
Width="120" style="text-align:center" />
<ajaxToolkit:NumericUpDownExtender ID="NumericUpDownExtender2"
runat="server"
TargetControlID="TextBox2"
Width="120"

RefValues="January;February;March;April;May;June;July;August;September;October;November;December"
ServiceDownMethod=""
ServiceUpMethod=""
TargetButtonDownID=""
TargetButtonUpID="" />
</form>
</body>
</html>
 
Back
Top