书上这段代码出错在何处?
我按照书上打了一段代码:
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="WebForm1.aspx.vb" Inherits="WebApplication3.WebForm1"%>
<html>
<form runat="server" ID="Form1">
<asp:calendar id="calA" runat="server"
selectionMode="DayweekMonth" showGridLine="True"
ShowNextPrevMonth="True" NextMonthText="[Next]"
selectedDayStyle-backcolor="#dbdbdb"
onselectionchanged="calA_sc"/>
</form>
<asp:label1 id="label1" runat="server"/>
<script language="VB" runat="server">
sub calA_sc(sender as object,e as eventargs)
label1.text="您所点选的日期为:"& calA.selectedDate
end sub
</script>
</html>
================================
出错信息为:
分析器错误
说明: 在分析向此请求提供服务所需资源时出错。请检查下列特定分析错误详细信息并适当地修改源文件。
分析器错误信息: 未能从程序集 System.Web, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 中加载类型 System.Web.UI.WebControls.label1。
源错误:
行 8: onselectionchanged="calA_sc"/>
行 9: </form>
行 10: <asp:label1 id="label1" runat="server"/>
行 11: <script language="VB" runat="server">
行 12: sub calA_sc(sender as object,e as eventargs)
源文件: c:\inetpub\wwwroot\WebApplication3\WebForm1.aspx 行: 10
--------------------------------------------------------------------------------
版本信息: Microsoft .NET Framework 版本:1.1.4322.573; ASP.NET 版本:1.1.4322.573
请问错在哪里?