主题:验证控件的问题
我使用验证控件总是出错,错误如下;
Parser Error Message: Could not load type System.Web.UI.WebControls.RequireFieldValidator from assembly System.Web, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
程序如下:
<%@ Page Language="C#" %>
<html>
<body>
<form method=post runat="server">
email:<br>
<asp:TextBox id = email width=200px maxlength=60 runat="server" />
<asp:RequireFieldValidator id="emailReqVal"
ControlToValidate="email"
ErrorMessage="please input the email"
Display="Dynamic"
runat="server">
</asp:RequireFieldValidator>
</form>
</body>
</html>
Parser Error Message: Could not load type System.Web.UI.WebControls.RequireFieldValidator from assembly System.Web, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
程序如下:
<%@ Page Language="C#" %>
<html>
<body>
<form method=post runat="server">
email:<br>
<asp:TextBox id = email width=200px maxlength=60 runat="server" />
<asp:RequireFieldValidator id="emailReqVal"
ControlToValidate="email"
ErrorMessage="please input the email"
Display="Dynamic"
runat="server">
</asp:RequireFieldValidator>
</form>
</body>
</html>