see07 Posted May 12, 2004 Posted May 12, 2004 Somebody knows an easy way to achieve build an edit box type control that allows dates to be entered? Something similar to the DateTimePicker in Windows Forms but in web forms? Thanks Quote
mocella Posted May 12, 2004 Posted May 12, 2004 You answered your own question without realizing it :D Check out System.Windows.Forms.DateTimePicker Quote
*Experts* Nerseus Posted May 12, 2004 *Experts* Posted May 12, 2004 ...except he wanted one for WebForms. I can't help you with a control. I replied so that the thread didn't "die off" if someone thought it had been answered. -nerseus Quote "I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut
Arch4ngel Posted May 12, 2004 Posted May 12, 2004 I don't know how to implement it but... I saw something really cool that look like a DateTimePicker. http://www.enterprise.com/car_rental/home.do It was on this Car Rental compagny. Maybe you could inspire their design or their functionnality. Quote "If someone say : "Die mortal !"... don't stay to see if he isn't." - Unknown "Learning to program is like going out with a new girl friend. There's always something that wasn't mentioned in the documentation..." - Me "A drunk girl is like an animal... it scream at everything like a cat and roll in the grass like a dog." - Me after seeing my girlfriend drunk and some of her drunk friend. C# TO VB TRANSLATOR
Joe Mamma Posted May 12, 2004 Posted May 12, 2004 I don't know how to implement it but... I saw something really cool that look like a DateTimePicker. http://www.enterprise.com/car_rental/home.do It was on this Car Rental compagny. Maybe you could inspire their design or their functionnality. why not use their code???? http://www.enterprise.com/car_rental/home.do/include/calendar20021122.js (when in doubt, "right-click | view source" ) Note: that this is a client side calendar. Not everything should be done on the server side!!!! Quote Joe Mamma Amendment 4: The right of the people to be secure in their persons, houses, papers, and effects, against unreasonable searches and seizures, shall not be violated, and no warrants shall issue, but upon probable cause, supported by oath or affirmation, and particularly describing the place to be searched, and the persons or things to be seized. Amendment 9: The enumeration in the Constitution, of certain rights, shall not be construed to deny or disparage others retained by the people.
Arch4ngel Posted May 13, 2004 Posted May 13, 2004 Ya right ! But I don't like to use others component.. especially if it's a compagny... They got rights on this piece of code and... they might not like that you just... borrow them like this. However... Only seeing something in action might get you more idea and maybe you'll be able to do a Server-Side calendar :p Quote "If someone say : "Die mortal !"... don't stay to see if he isn't." - Unknown "Learning to program is like going out with a new girl friend. There's always something that wasn't mentioned in the documentation..." - Me "A drunk girl is like an animal... it scream at everything like a cat and roll in the grass like a dog." - Me after seeing my girlfriend drunk and some of her drunk friend. C# TO VB TRANSLATOR
Joe Mamma Posted May 13, 2004 Posted May 13, 2004 Ya right ! But I don't like to use others component.. especially if it's a compagny... They got rights on this piece of code and... they might not like that you just... borrow them like this. GET OVER IT!!! :) A programmers best friend is Cut n' Paste. My computer science prof once said, "Laziness is an asset when it comes to programming." If a problem has been solved, don't solve it again. Do a search on some java script code sites and I bet you will find that their code is not original. However... Only seeing something in action might get you more idea and maybe you'll be able to do a Server-Side calendar :p Not everything should be server side. My opinion is this control should not be making calls back to the server each time the user changes the month or year. Now, you might make a server side control that sets up all this client side jscript. That makes alot of sense. Quote Joe Mamma Amendment 4: The right of the people to be secure in their persons, houses, papers, and effects, against unreasonable searches and seizures, shall not be violated, and no warrants shall issue, but upon probable cause, supported by oath or affirmation, and particularly describing the place to be searched, and the persons or things to be seized. Amendment 9: The enumeration in the Constitution, of certain rights, shall not be construed to deny or disparage others retained by the people.
Arch4ngel Posted May 13, 2004 Posted May 13, 2004 Yeah... I know that ! And I love coming back on that !! :p lol But yes... it's better to use already made component... no test to do... no time wasted... But it's more funny making your own... but sometime you don't have "time" for that. I know that and I love seeing you hating me :p lollll Quote "If someone say : "Die mortal !"... don't stay to see if he isn't." - Unknown "Learning to program is like going out with a new girl friend. There's always something that wasn't mentioned in the documentation..." - Me "A drunk girl is like an animal... it scream at everything like a cat and roll in the grass like a dog." - Me after seeing my girlfriend drunk and some of her drunk friend. C# TO VB TRANSLATOR
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.