943,544 Members | Top Members by Rank

Ad:
  • C# Discussion Thread
  • Unsolved
  • Views: 2891
  • C# RSS
You are currently viewing page 1 of this multi-page discussion thread
Dec 5th, 2008
0

Date of Birth

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
shraddha24 is offline Offline
7 posts
since Dec 2008
Dec 5th, 2008
0

Re: Date of Birth

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
Reputation Points: 196
Solved Threads: 190
Posting Virtuoso
LizR is offline Offline
1,735 posts
since Aug 2008
Dec 5th, 2008
0

Re: Date of Birth

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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
shraddha24 is offline Offline
7 posts
since Dec 2008
Dec 5th, 2008
0

Re: Date of Birth

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
Reputation Points: 196
Solved Threads: 190
Posting Virtuoso
LizR is offline Offline
1,735 posts
since Aug 2008
Reputation Points: 11
Solved Threads: 16
Junior Poster
Jugortha is offline Offline
172 posts
since Oct 2007
Dec 6th, 2008
3

Re: Date of Birth

Date of birth on a job portal? Are you mad?
Team Colleague
Reputation Points: 1133
Solved Threads: 171
Super Senior Demiposter
Rashakil Fol is offline Offline
2,478 posts
since Jun 2005
Dec 8th, 2008
0

Re: Date of Birth

Are you mad rashakil ? How will a company identify that a particular employee fits in the specified age group of employees for a particular job. Go through some of the job portals and u'll know what I'm saying..Anyways..why am I explaining you
Reputation Points: 10
Solved Threads: 0
Newbie Poster
shraddha24 is offline Offline
7 posts
since Dec 2008
Dec 8th, 2008
0

Re: Date of Birth

DOB shouldnt matter if someones capable of doing a job they are capable however, I dont see why it shouldnt be there.
Reputation Points: 196
Solved Threads: 190
Posting Virtuoso
LizR is offline Offline
1,735 posts
since Aug 2008
Dec 8th, 2008
0

Re: Date of Birth

Click to Expand / Collapse  Quote originally posted by LizR ...
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
Hi,
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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
shraddha24 is offline Offline
7 posts
since Dec 2008
Dec 8th, 2008
0

Re: Date of Birth

Click to Expand / Collapse  Quote originally posted by LizR ...
DOB shouldnt matter if someones capable of doing a job they are capable however, I dont see why it shouldnt be there.
Hi,
LizR should I remove D.O.B field from my website is it really unnecessary?
thanks
shraddha
Reputation Points: 10
Solved Threads: 0
Newbie Poster
shraddha24 is offline Offline
7 posts
since Dec 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC