ASP.NET Web应用程序中的日历控件 [英] Calendar control in asp.net web application

查看:58
本文介绍了ASP.NET Web应用程序中的日历控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人,

我的任务是仅显示6个日期,并为用户隐藏日历中月份中的剩余日期.因此,用户将只能选择未隐藏的日期.
例如,如果用户选择9月27日,则应授予他选择接下来的6天(即直到9月3日)的权限.然后,应禁用所有剩余日期.请帮我解决一下这个.我一直在努力寻找解决方案,但直到现在我都找不到.

谢谢和问候
velu

Dear all,

My task is to show only 6 dates and hide the remaining dates from the month in the calendar for the user. So the user will able to select only the dates which is not hidden.
For example, if the user selects 27th september, he should be given access to select the next 6 days which means till 3rd september. Then all the remaining dates should be disabled. Please help me with this. I have been trying to find out solution for this, but I could not find it till now.

Thanks and regards
velu

推荐答案

尝试使用DayRender事件禁用日期.
http://www.codedigest.com/CodeDigest/181-How-to-disable-past-previous-dates-inCalendar-Control-in-ASP-Net-.aspx [如何从日历控件动态禁用选定日期 [
Try using DayRender event to disable dates.
http://www.codedigest.com/CodeDigest/181-How-to-disable-past-previous-dates-in-Calendar-Control-in-ASP-Net-.aspx[^]
How to Disable Selected Dates dynamically from the Calendar Control[^]


这篇关于ASP.NET Web应用程序中的日历控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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