页面文件的代码为:
<HTML>
<HEAD>
<title>WebForm1</title>

<script language="C#" runat="server">
    void date_selected(object s,EventArgs e){
    switch(Calendar1.SelectedDates.Count){
    case (0):
    Label1.Text="你没有选择";
    break;
    case (1):
    Label1.Text="你选择的日期是"+Calendar1.SelectedDate.ToShortDateString();
    break;
    case (7):
    Label1.Text="这个星期以"+Calendar1.SeletedDate.ToShortDateString()+"开始";
    break;
    default:
    Label1.Text="这个月以"+Calendar1.SelectedDate.ToShortDateString()+"开始";
    break;
    }
  }
    
</script>
</HEAD>
<body MS_POSITIONING="GridLayout">
<h1>日历</h1>
<p>
<form id="Form1" method="post" runat="server">
<p>
<asp:Calendar ID="Calendar1" Runat="server" OnSelectionChanged="date_selected" DayNameFormat="Full"
SelectionMode="DayWeekMonth" Font-Name="Verdana;Arial" Font-Size="12px" Height="180px" Width="230px"
TodayDayStyle-Font-Bold="True" DayHeaderStyle-Font-Bold="True" OtherMonthDayStyle-ForeColor="gray"
TitleStyle-BackColor="lightgreen" TitleStyle-ForeColor="white" TitleStyle-Font-Bold="True"
SelectedDayStyle-BackColor="lightyellow" SelectedDayStyle-Font-Bold="True" NextPrevFormat="ShortMonth"
NextPrevStyle-ForeColor="white" NextPrevStyle-Font-Size="10px" SelectedDayStyle-ForeColor="navy"
SelectedDayStyle-Font-Size="9px" SelectWeekText="周" SelectMonthText="月" />
<p>
<asp:Label ID="Label1" Runat="server" />
</form>
</p>
</body>
</HTML>
除了这道题
还有好几道题都出现这样的 相同的莫名其妙的错误:
“/Calendar”应用程序中的服务器错误。
--------------------------------------------------------------------------------编译错误 
说明: 在编译向该请求提供服务所需资源的过程中出现错误。请检查下列特定错误详细信息并适当地修改源代码。 编译器错误信息: CS0234: 类型或命名空间名称“Global”在类或命名空间“System.Web.UI.WebControls.Calendar”中不存在(是否缺少程序集引用?)源错误: 行 26:     
行 27:     [System.Runtime.CompilerServices.CompilerGlobalScopeAttribute()]
行 28:     public class Global_asax : Calendar.Global {
行 29:         
行 30:         private static bool __initialized = false;
 源文件: c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\calendar\89966ca2\25eb6427\hyc933u6.0.cs    行: 28 
这是咋回事 从来都没遇到过 谢谢回答