logon.aspx
________________
<%Page Language="C#" AutoEventWireup="true" CodeFile="Logon.aspx.cs" Inherits="Logon" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server">
<title>Login.axp </title>
</head>
<body>
<form id="form1" runat="server">
<table height="100%" cellSpacing="0" cellpadding="0" width="100%" border="0" >
<tr>
<td height="52" align="center">
<asp:Login ID="Login1" runat="server" BackColor="#F7F7DE"
BorderColor="#CCCC99"
BorderStyle="solid" BorderWidth="1px"
Font-Names="Verdana" Font-Size="10px" OnAuthenticate="OnAuthenticate"/>
<TitleTextStyle BackColor="#6B696B" Font-Bold="True"
ForeColor="#FFFFFF" />
</asp:Login>
<br/>
<a href="CreateUser.aspx">new user register </a>
</td>
</tr>
</form>
</body>
</html> 少了个/
________________
<%Page Language="C#" AutoEventWireup="true" CodeFile="Logon.aspx.cs" Inherits="Logon" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server">
<title>Login.axp </title>
</head>
<body>
<form id="form1" runat="server">
<table height="100%" cellSpacing="0" cellpadding="0" width="100%" border="0" >
<tr>
<td height="52" align="center">
<asp:Login ID="Login1" runat="server" BackColor="#F7F7DE"
BorderColor="#CCCC99"
BorderStyle="solid" BorderWidth="1px"
Font-Names="Verdana" Font-Size="10px" OnAuthenticate="OnAuthenticate"/>
<TitleTextStyle BackColor="#6B696B" Font-Bold="True"
ForeColor="#FFFFFF" />
</asp:Login>
<br/>
<a href="CreateUser.aspx">new user register </a>
</td>
</tr>
</form>
</body>
</html> 少了个/
===============
这里换一个类名,比如 LoginForm
public partial class LoginForm
别忘了aspx也要修改
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="LoginForm" %>你的类名和ASP.NET提供的控件名冲突了
===
貌似用的.NET 1.1,那应该不是我刚才提到的问题,sorry