Click here to Skip to main content
15,888,116 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,
I have constructed Ajax Control Toolkit numericUpDown in my ASP.NET web page.I set the Minimum=00 and Maximum=24. It works. I want to change Hour and minutes in this numericUpDown. Something like 14:30..etc. When I try to write MAximum=23:59 and Minimum=00:00 program not accept this notation. How can I show hour-minutes on the numericUpDown and change it by using buttons?
XML
<asp:TextBox ID="TextBox4" runat="server" Width="79px">00:00</asp:TextBox>
                                  <asp:NumericUpDownExtender Width="60" TargetControlID="TextBox4"  Minimum="00"
                                      Maximum="23" ID="NumericUpDownExtender1" runat="server">
                                  </asp:NumericUpDownExtender>


Thanks.
Posted
Updated 6-Jul-11 8:54am
v4
Comments
[no name] 6-Jul-11 14:47pm    
Asking for ASAP response is rude.

You are attempting to set a value for a NUMERIC property to 23:59, which is NOT numeric. Of course the control will not accept this.

You must code this functionality yourself, the numericUpDown control won't help you. It is very easy to handle the events for the buttons and format the text in your textbox appropriately using JavaScript
 
Share this answer
 
You are right, I should not use 23:59 notation. How can I find from google for searching javascript code? Which words I should write google?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900