nordyj
January 24th, 2001, 02:27 PM
I'm going to pick my monitor up in just a moment, and throw it as hard as I can across the room. Before I do that, however, I'd like to ask a question. I have the following code in a .aspx file:
<%@ Page Language="VB" Inherits="clsDefault" Src="VBObjects.vb"%>
<html>
<head>
<link rel="stylesheet" type="text/css" href="webforms.css"/>
<title>MCG Northwest Web Forms</title>
</head>
<body>
<p>
<asp:Label id="lblCaption" style="font-family: Tahoma, Arial, Times New Roman; font-size: 24pt; font-weight: 700;" text="MCG Web Forms" runat="server"/>
</p>
<form action="ProcessForm.aspx" method="Post" runat="server">
<asp:ValidationSummary runat="server" ShowSummary="True" HeaderText="One or more fields were not filled in:"/>
<table cellpadding=1>
<tr>
<td><asp:RequiredFieldValidator runat="server" ControlToValidate="txtName" Display="dynamic" ErrorMessage="You must enter your name.">*</asp:RequiredFieldValidator></td>
<td>Name:</td>
<td><asp:TextBox id="txtName" width="250" runat="server"/></td>
</tr>
</table
</form>
</body>
</html>
It seems that no change I make to this file, except removing the validators, will prevent the following error: "'Page_Validators' not defined." What the hell is going on? Yes it is? Has anybody had any experience with this error, and if so, how did you solve it? I thought that removing the first line (the ASP Page line) might help, but it doesn't, so the problem does not exist in my .vb file.
Thanks in advance for any help.
<%@ Page Language="VB" Inherits="clsDefault" Src="VBObjects.vb"%>
<html>
<head>
<link rel="stylesheet" type="text/css" href="webforms.css"/>
<title>MCG Northwest Web Forms</title>
</head>
<body>
<p>
<asp:Label id="lblCaption" style="font-family: Tahoma, Arial, Times New Roman; font-size: 24pt; font-weight: 700;" text="MCG Web Forms" runat="server"/>
</p>
<form action="ProcessForm.aspx" method="Post" runat="server">
<asp:ValidationSummary runat="server" ShowSummary="True" HeaderText="One or more fields were not filled in:"/>
<table cellpadding=1>
<tr>
<td><asp:RequiredFieldValidator runat="server" ControlToValidate="txtName" Display="dynamic" ErrorMessage="You must enter your name.">*</asp:RequiredFieldValidator></td>
<td>Name:</td>
<td><asp:TextBox id="txtName" width="250" runat="server"/></td>
</tr>
</table
</form>
</body>
</html>
It seems that no change I make to this file, except removing the validators, will prevent the following error: "'Page_Validators' not defined." What the hell is going on? Yes it is? Has anybody had any experience with this error, and if so, how did you solve it? I thought that removing the first line (the ASP Page line) might help, but it doesn't, so the problem does not exist in my .vb file.
Thanks in advance for any help.