Click here to Skip to main content
15,887,596 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
i want to make a program in asp.net in which user select year, month and date from dropdownlist and then program will tell age of the user.can anyone help me.

note:months should be in month name not the integer values.
Posted
Comments
OriginalGriff 7-Apr-15 14:31pm    
And?
What have you tried?
Where are you stuck?
What help do you need?

Umair you should have tried it first. Any way I am providing you few links..solve your problem using those links.

1. How get date from a Drop Down List[^]

2. Get todays date(only date, except time).[^]

3. Get the difference between two date, thats your age.[^]

I think these three links a enough for you to solve your problem.
 
Share this answer
 
Comments
umair mohsin 8-Apr-15 0:51am    
your are write but i am new to asp.net environment and also i have no previous experience of programming
If you a beginner, then you should start from the basic and invest some time and effort in exploring ASP.NET Walkthroughs by Scenario[^]
To answer your question, instead of dropdownlist, why not use a datepicker, such as jQuery Datepicker[^] or a
CalendarExtendar control from the AjaxControlToolKit [^]
 
Share this answer
 

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