在calendar.asp网页中添加个claendar控件
在页面中双击日历控件添加代码
protected void Calendar1_SelectionChanged(object sender, EventArgs e)
{
Response.Write(string.Format("您选中的日期为{0}", Calendar1.SelectedDates[0].ToString("yyyy-mm-dd")));
}为什么我调试的时候选择个日期后月份显示都是 00
在页面中双击日历控件添加代码
protected void Calendar1_SelectionChanged(object sender, EventArgs e)
{
Response.Write(string.Format("您选中的日期为{0}", Calendar1.SelectedDates[0].ToString("yyyy-mm-dd")));
}为什么我调试的时候选择个日期后月份显示都是 00
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货