Ajax NumericUpdownExtender - How do I use it?

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.
 
B

bruce barker

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)
 
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.

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>
 

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

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top