| | |
Date of Birth
Please support our C# advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Dec 2008
Posts: 7
Reputation:
Solved Threads: 0
I am developing a job portal and i want the end user to enter his/her D.O.B..for that I want to create 3 dropdown one for..day,second for month and third for year..since I'm new to asp.net 2.0 my problem is how to program to as to get the values of all the 3 dropdown boxes..into one field. Can anyone help me out? If source code is available..then it's really nice.
thanks..in advance
shraddha
thanks..in advance
shraddha
•
•
Join Date: Aug 2008
Posts: 1,735
Reputation:
Solved Threads: 186
When the data is posted onto the receiving page, you'll get say
month=5
Day=8
year = 1945
(not my birthday!!)
you would then - add them up like a human would to form a date like string such as "8/5/1945" and try and convert it to a date, if it succeeds they it was ok however if they entered something like 31st september.. it woudl fail and you know they need to check what they entered
month=5
Day=8
year = 1945
(not my birthday!!)
you would then - add them up like a human would to form a date like string such as "8/5/1945" and try and convert it to a date, if it succeeds they it was ok however if they entered something like 31st september.. it woudl fail and you know they need to check what they entered
Did I just hear "You gotta help us, Doc. We've tried nothin' and we're all out of ideas" ? Is this you? Dont let this be you! I will put in as much effort as you seem to.
•
•
Join Date: Dec 2008
Posts: 7
Reputation:
Solved Threads: 0
Thanks Liza,
Even I was thinking on a same note..and then will I have to take the database..field datetime...n then string.parse to datetime..field..n at the time of editing the user again gets the string format of datetime..but may be at the time of editing the end user may also see the time..because..datetime takes time by default. Any suggestions?
Well I'm going to give it a try.
anyways thanks
shraddha
Even I was thinking on a same note..and then will I have to take the database..field datetime...n then string.parse to datetime..field..n at the time of editing the user again gets the string format of datetime..but may be at the time of editing the end user may also see the time..because..datetime takes time by default. Any suggestions?
Well I'm going to give it a try.
anyways thanks
shraddha
•
•
Join Date: Aug 2008
Posts: 1,735
Reputation:
Solved Threads: 186
Then you need to ensure your formatting for that field removes any time portion.
Also, dont rely on the DB to do the date validation, do it before you try storing the data
Also, dont rely on the DB to do the date validation, do it before you try storing the data
Did I just hear "You gotta help us, Doc. We've tried nothin' and we're all out of ideas" ? Is this you? Dont let this be you! I will put in as much effort as you seem to.
•
•
Join Date: Dec 2008
Posts: 7
Reputation:
Solved Threads: 0
•
•
•
•
Then you need to ensure your formatting for that field removes any time portion.
Also, dont rely on the DB to do the date validation, do it before you try storing the data
LizR if you can provide me some code on how to extract values in different dropdownlist n then rebind it a database field I'll be greatful since all my attempts give me some eroor or the other.
thanks
shraddha
![]() |
Similar Threads
- calculating the date of birth (PHP)
- Find out date of birth html (PHP)
- MS Access Date Function (Windows Software)
- Problem in finding birthday from date of birth in SQL Server (MS SQL)
- reading a date field out to a jTable component (Java)
- Date of Birth field need help (ASP.NET)
- trying to do a date of birth comparison. (Java)
Other Threads in the C# Forum
- Previous Thread: trying to sort rows in txt files
- Next Thread: Retrieving the COM class factory for component with CLSID {91493441-5A91-11CF-8700-00
| Thread Tools | Search this Thread |
.net access algorithm array barchart bitmap box broadcast c# check checkbox client combobox control conversion csharp custom cyclethruopenforms data database datagrid datagridview dataset date/time datetime degrees development dll draganddrop drawing encryption enum event excel file finalyearproject form format forms function gdi+ getoutlookcontactusinfcsvfile globalization httpwebrequest image index input install installer java label list listbox mandelbrot math mono mouseclick mysql operator panel path photoshop picturebox pixelinversion post programming radians regex remote remoting richtextbox save server silverlight sleep socket sql sql-server statistics stream string table text textbox thread time timer timespan update usercontrol users validate validation visualstudio webbrowser wia windows winforms wpf xml






