菜问题
“RequiredFieldValidator1”的 ControlToValidate 属性不能为空。
上面是错误提示。帮我看看那里写的不对,见笑了。
aspx:
<!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> 登陆页 </title>
</head>
<body>
<form id= "form1 " runat= "server ">
<table>
<tr>
<td colspan= "2 " style= "height: 180px ">
</td>
</tr>
<tr>
<td style= "width: 350px ">
</td>
<td style= "width: 342px ">
<div style= "background-position-x: center; background-attachment: scroll; background-repeat: repeat-x ">
<asp:Login ID= "Login1 " runat= "server " BackColor= "#EFF3FB " BorderColor= "#B5C7DE " BorderPadding= "4 "
BorderStyle= "Solid " BorderWidth= "1px " Font-Names= "Verdana " Font-Size= "10pt " ForeColor= "#333333 "
CreateUserText= "注册 " CreateUserUrl= "~/UserReg.aspx " DestinationPageUrl= "~/Main_0.aspx "
Height= "173px " HelpPageText= "变更密码 " HelpPageUrl= "~/ChangPassword.aspx " PasswordRecoveryText= "找回密码 "