Solved

Time control with up/down arrows

Posted on 2007-11-25
6
725 Views
Last Modified: 2008-03-17
Hello,

I am writing a c# asp.net application and need to use a control for hours, minutes and seconds with up and down arrows to increment and decrement the values.
Is there a control for that?

Thank you
0
Comment
Question by:Relegence
  • 2
  • 2
6 Comments
 
LVL 29

Expert Comment

by:QPR
ID: 20348713
you could capture the onkeypress event check if it's the up/down arrow (what ever that equates to) and add/subtract from your control?
0
 

Author Comment

by:Relegence
ID: 20348719
I dont have a control for that.
I need a control that consists of a textbox and 2 image buttons and uses javascript to capture the up/down clicks.
Do you know of such a control?
If not, I'll write one myself,  but I thought to check first if there is one
0
 
LVL 29

Accepted Solution

by:
QPR earned 500 total points
ID: 20348757
well the text box and 2 image buttons = 3 controls, I'm not sure what you mean by a control that consists of....
But you could updte the contents of the text box based on the up/down arrow keypresses. Personally I'd use (clientside code) javascript rather than server side control else the user will have to wait for postbacks each time the key is pressed.
Detecting up/down arrow keys
http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_21684508.html

Just capture this and use javascript to update the value of the textbox accordingly
0
 

Author Comment

by:Relegence
ID: 20349009
Thank you.
I've implemented such a control. I stil have a problem with addressing properties on client-side (I just posted a new question).
I am not sure whether I should close this question...
0
 
LVL 1

Expert Comment

by:Computer101
ID: 21146862
Forced accept.

Computer101
EE Admin
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

A Change in PHP Behavior with Session Write Short Circuit (http://php.net/manual/en/book.session.php#116217) (Winter 2014)** With the release of PHP 5.6 the session handler changed in a way that many think should be considered a bug.  See the note …
A publishing tool, a Version Control System, or a Collaboration Platform! These can be some of the defining words for the two very famous web-hosting Git repositories: Bitbucket and Github. Git is widely used amongst the programmers and developers f…
Wufoo.com provides powerful tools for surveying targeted groups, and utilizing data from completed surveys to find trends, discover areas of demand or customer expectation, and make business decisions on products or services.
Learn how to set-up PayPal payment integration in your Wufoo form. Allow your users to remit payment through PayPal upon completion of your online form. This is helpful for collecting membership payments, customer payments, donations, and more.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now