Solved

Time control with up/down arrows

Posted on 2007-11-25
6
727 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Using Quotation Marks in PHP This question (http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/Q_28217211.html) seems to come up a lot for developers who are new to PHP.  And it got me thinking, "How can we explain the rule…
New Relic: Our company recently started researching several products to figure out what were the best ways for us to increase our web page speed and to quickly identify performance problems that we may be having. One of the products we evaluated wa…
This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to selectively show certain fields based on user input using rules to gather relevant information and data from your forms. The rules feature provides you with an opportunity…

777 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