ASP.NET 点击Calendar的日期后自动隐藏将日期显示在label里

要详细的c#代码 谢谢了
2024-12-16 13:18:26
推荐回答(1个)
回答1:







onselectionchanged="Calendar1_SelectionChanged">

后台代码:
protected void Calendar1_SelectionChanged(object sender, EventArgs e)
{
lblDate.Text = Calendar1.SelectedDate.ToString();

Calendar1.Visible = false;
}