如何在日历中分配列名 [英] How to assign column name in calender

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

问题描述



我不知道如何分配列名值来代替(2012,01,29);

Hi,

I don''t know how to assign the column name value in place of (2012, 01, 29);

DateTime thisDate = new DateTime(2012, 01, 29);

//Am using the below method to disable the calender date;

protected void Calendar1_DayRender(object sender, DayRenderEventArgs e)
        {
            if (e.Day.Date > DateTime.Now.Date||e.Day.Date<thisDate.Date)
            {
                e.Day.IsSelectable = false;
                e.Cell.ForeColor = System.Drawing.Color.Gray;
            }
        }



在此先谢谢您.



Thanks in advance.

推荐答案

我想您是说数据库中的列值.
由于您尚未在此处指定任何数据库.
我在下面的链接发布.如果您的问题与数据库有关,请仔细阅读

否则,请进一步说明它是什么类型的列".

http://www.c-sharpcorner.com/1/131/ [
I think you meant to say the column values from database.
Since you have not specified any database over here .
I am posting below link . please read it if your question refer to database

Other wise please clarify more what type of "Column" it is.

http://www.c-sharpcorner.com/1/131/[^]


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

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