如何在ajax日历中隐藏周末 [英] How to hide weekends in ajax calender

查看:67
本文介绍了如何在ajax日历中隐藏周末的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在ajax日历中隐藏周末(周六,周日)?

How to hide weekends (Sat, Sun) in ajax calender?

推荐答案

protected void Calendar1_DayRender(object sender, DayRenderEventArgs e)
    {
        if (e.Day.IsWeekend)
            e.Cell.Controls.Clear();
    }





并且可能确切地说这是你想要的 -

http://stackoverflow.com/questions/554111 / how-can-i-hide-weekendnds-when-using-the-asp-net-calendar-control [ ^ ]


禁用日子,看看@ http://vincexu.blogspot .in / 2008/11 / how-to-disable-dates-which-less.html [ ^ ]
Disabling the days, take a look @ http://vincexu.blogspot.in/2008/11/how-to-disable-dates-which-are-less.html[^]


这篇关于如何在ajax日历中隐藏周末的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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