Click here to Skip to main content
15,904,023 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I need to create a time picker that will have hours, minutes, seconds, milliseconds. This is not a clock function but a way to enter lap times in races to populate a sql database of driver performance.
I have used the MKB:Time picker but I can not get it to work in code behind when I hit submit to push the data to my database.

The code behind script to take the value that is selected in the TimePicker and send it to my database using the INSERT sql command is the issue.
I can't figure out how to write it.
My field is Run_Time and my time picker is TimeSelectorRunTime.

So I tried to write:

Run_Time = TimeSelectorRunTime.SelectedValue.ToString

But that bombs saying that it can not enter the string value.
Posted
Updated 13-Jul-15 12:16pm
v2
Comments
Sergey Alexandrovich Kryukov 13-Jul-15 16:44pm    
What do you mean "how"? By doing appropriate software development work. Any particular problems?
—SA
[no name] 13-Jul-15 17:17pm    
"can not get it to work" is meaningless.
http://www.aspforums.net/Threads/184930/Calculate-Time-difference-between-two-MKB-TimePicker-controls-in-ASPNet/
Member 11598884 13-Jul-15 18:19pm    
I can not figure out how to write the code behind for the TimeSelector value.

I tried to write:
Run_Time(my data field)= TimeSelectorRunTime.SelectedValue.ToString but that does not work. It gives me an error that it can't enter the string.

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