here is an example in ASP, it should be very easy to convert it to ASP.NET:
编程实现:基于Web的事件日历 
http://media.ccidnet.com/media/ciw/1049/b1701.htmthe original article:
Building a Web-based Event Calendar
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnasp/html/calendar.asp

解决方案 »

  1.   

    点击日历控件上的每一天不是可以产生SelectionChanged事件么,在这里连接数据库,读取相应数据。
    一个例子,不过不是用数据库的:
    private void Calendar1_SelectionChanged(object sender, System.EventArgs e)
    {
    string reportTimeStr=Calendar1.SelectedDate.ToString("d");
    string reportTimeStrD=Calendar1.SelectedDate.ToString("D");
    string reportPath=Request.MapPath("reports/dl/"+reportTimeStr+".htm");
    if(File.Exists(reportPath))
    {
    Response.Redirect("reports/dl/"+reportTimeStr+".htm");
    }
    else
    {
    Label1.Text="抱歉,没有查到"+reportTimeStrD+"的记录!";
    }
    }