年定义计划 [英] year definig program

查看:73
本文介绍了年定义计划的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在asp.net中创建一个程序,用户从下拉列表中选择年份,月份和日期,然后程序将告诉用户的年龄。任何人都可以帮助我。



注意:月份应该是月份名称而不是整数值。

解决方案

Umair你应该先尝试一下。我用任何方式为你提供一些链接..使用这些链接解决你的问题。



1. 如何从下拉列表中获取日期 [ ^ ]



2. 获取今天的日期(仅限日期,时间除外)。 [ ^ ]



3. 获取两个日期之间的差异,这就是你的年龄。 [ ^ ]



我认为这三个链接足以让你解决问题。


如果你是初学者,那么你应该从基础开始并投资一些花时间和精力探索按场景划分的ASP.NET演练 [ ^ ]

要回答您的问题而不是下拉列表,为什么不使用日期选择器,例如 jQuery Datepicker [ ^ ]或

来自Aja的CalendarExtendar控件xControlToolKit [ ^ ]

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.

解决方案

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.


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 [^]


这篇关于年定义计划的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆