日期:2014-05-19  浏览次数:20720 次

Calendar控件赋值问题
this.Calendar1.SelectedDate   =   Convert.ToDateTime(ds.Tables[ "articles "].Rows[0][ "date "]);

用上面的语句对Calendar控件赋值后,显示却没有变化,仍然显示的是当前日期,为什么?怎么解决?请教了。


------解决方案--------------------
SelectedDate和VisibleDate不同。
------解决方案--------------------
this.Calendar1.Value
------解决方案--------------------
你的其他代码怎么写的?

看看
this.Calendar1.SelectedDate = DateTime.Now.AddDays(1);
有变化没有(如果是放在按钮的单击事件,应该有变化才对)