如何在asp.net中的ajax控件的日历扩展器中禁用一年 [英] How to disable a year in Calender extender of ajax control in asp.net
问题描述
你好
在我的项目中,我使用Calender Extender作为日期,我有2个财政年度11-12的数据库,即db11_12和12-13财政年度的数据库,即db12_13.因此从登录页面中我选择了财政年度并登录到该数据库. >
所以我的问题是,在我要登录db12_13的地方,然后在我的压延扩展器中,我不应该取回2012年4月1日以来的日期.我必须屏蔽到2012年3月31日,否则如果出现take消息将无法获取prev日期.然后同时登录db11_12,在这里它可能需要追溯日期.
我可以阻止某个日期,但是如果它登录db11-12则无法正常工作,这意味着不收回日期
有什么解决办法吗,请帮忙.
谢谢.
Hello
In my project i have used Calender extender for date, I have 2 data base for financial year 11-12 i.e. db11_12 and for 12-13 i.e. db12_13.So from Login page I am selecting financial year and login to that database.
so my problem is that where I will login to db12_13 then in my calender extender I should not take back date from 01-Apr-2012. I have to block till 31-Mar-2012 or if take then message will occur that can''t take prev date. then at the same time when i login to db11_12 , Here it can take the back date.
I am able to block a date but where it login to db11-12 then it is not working means not taking back date
Is there any solution then please help.
Thanks.
推荐答案
在此处查看此技巧,看起来与您需要的类似: ^ ]
Have a look at this Tip here, looks something similar you need: Tip 6: How to make sure user does not select a date earlier than today or greater than today[^]
这篇关于如何在asp.net中的ajax控件的日历扩展器中禁用一年的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!