• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 738
  • Last Modified:

Time control with up/down arrows


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
  • 2
  • 2
1 Solution
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?
RelegenceAuthor Commented:
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
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

Just capture this and use javascript to update the value of the textbox accordingly
RelegenceAuthor Commented:
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...
Forced accept.

EE Admin
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now