Its TimePicker baby!
Did you ever had a web application project in which you had to get time from the user. No! You are lucky buddy. Such a tiny thing and such a mess to make sure that user enter correct time entry. This is certainly not fair from developer perspective. A developer must be concentrating on other important issues and not wasting there brain cells on validating user input. And that was exactly the case in my last project. I had to get time entry from the user. Now user had no idea of the format he should enter the time in. Some tried to enter in military format, some in AM-PM style and then there were others who were a little more exploring and entered some random garbage. Not good for users and certainly not good for me as a developer.
"There must be some intuitive way, where user just always enter the correct time. Something like Date Picker which shows a small calendar when you click a button and you can quickly select the correct date. Chances of mistake minimized. User should feel happy and so do developer. Thinking...Searching...Thinking..Searching....Bingo! Alright I got a way out of this. Lets develop a custom web control that can do exactly the same. One time effort and problem defeated once in for all." This thought got me rolling. And I went ahead to develop an ASP.net web control for my use. Soon I realized that not many intuitive controls are available are available on net that can do this task so easily and there might be developers out there who would love a little help of this kind and so I decided to make it available to others for free through this blog.
So if you are just wondering what all it can offer you. Here is quick list of features I have implemented in this version:
- An intuitive user interface which allows user to quickly pick time.
- Get time from user in both the formats i.e AM-PM or Military style.
- "TimeChanged" event to handle the changes in time.
- "AutoPostBack" property that causes post back the page automatically and handle raised event like "TimeChanged".
- Includes an inbuilt theme as well ability to modify looks using style properties and/or CSS.
- Support for Visual Studio 2005 design time.
- Supports .Net framework 2.0 and IE5.5+.
5 Comments:
I like the tool but I have one problem with the way you list your time. Having a zero based hour list is confusing to end users. I know it ends up working in the end after postback but the text field ends up looking like 0:30 PM instead 12:30 PM.
I would love to see a combination Date/Time version of this. Perhaps have three modes Date Only, Time Only and Date/Time. Good work though.
please do see it and try to solve it as soon as possible coz its timechanged event does not fire, i made its autopostback event true,and on
protected void TimePicker1_TimeChanged(object sender, EventArgs e)
{
Label1.Text = TimePicker1.SelectedTime.ToString();
}
but wihtout any use, on debugging even it does not enter even the handler, please help me as soon as possible,
if you could mail then it would be best and kind of you
javvadahmad@gmail.com
yes now i m able to figure out the real cause, i was using it under atlas framework its working fine with it, but when we use master pages and i use it in some page using the master page then it fails to handle the event, it does not enter in the handler at all, so kindly see this thing, and mail me as soon as possible, means doesnot work with masterpages i.e with the page using master page at javvadahmad@gmail.com , waiting desparately for your response
how to handle with java script and how to fix width. Width is main issue of this control please any one know please post comment on that
The tool looks amazing, however I cant find a download page, can you point me in the right direction?
Post a Comment
<< Home