Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/294.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# asp.net日历控件中当前选定的月份_C#_Asp.net - Fatal编程技术网

C# asp.net日历控件中当前选定的月份

C# asp.net日历控件中当前选定的月份,c#,asp.net,C#,Asp.net,没有选择日期时,如何知道选择了哪个月 例如,在页面加载时,日历将显示十二月。用户单击“>”按钮以显示一月 我怎么知道他选择了一月 Tkz您可以使用VisibleMonthChanged事件来识别它 protected void Cal1_VisibleMonthChanged(object sender, MonthChangedEventArgs e) { //e.NewDate.Month will have the new visible month } 要获取月份名称,请检查这

没有选择日期时,如何知道选择了哪个月

例如,在页面加载时,日历将显示十二月。用户单击“>”按钮以显示一月

我怎么知道他选择了一月


Tkz

您可以使用
VisibleMonthChanged
事件来识别它

protected void Cal1_VisibleMonthChanged(object sender, MonthChangedEventArgs e)
{
    //e.NewDate.Month will have the new visible month
}
要获取月份名称,请检查这些网页