<%@ Page Language="vb" AutoEventWireup="false" Codebehind="WebForm14.aspx.vb" Inherits="WebApplication1.WebForm14"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>WebForm14</title>
<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
<meta name="vs_defaultClientScript" content="javascript">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
</HEAD>
<body>
<form id="Form1" method="post" runat="server">
username:<asp:TextBox id="username" runat="server" />
<asp:requiredfieldvalidator controltovalidate="username" display="dynamic" forecolor="#ff0000" font-name="宋体" font-size="9pt" text="请填写" runat="server" id="Requiredfieldvalidator1" />
password:<asp:TextBox id="password" runat="server"></asp:TextBox>
<asp:Button id="Button1" runat="server" Text="submit"></asp:Button>
</form>
</body>
</HTML>
是何原因出错,请高手看看!
图片如下: