日期:2014-05-18  浏览次数:20378 次

在.cs代码文件中无法识别控件!郁闷
小弟做了一个注册网页,用的的VS2005 内容如下:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Login_Person.aspx.cs" Inherits="Login_Person" %>

<!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 id="Head1" runat="server">
  <title>个人用户注册</title>
</head>
<body>
  <form id="form1" runat="server">
  <div runat = "server">
  <center>
  <table width = "750px">
  <tr> <td style=" width:150px;height:82px; font-size: 20pt; font-family: 幼圆;">
  水院信息港</td>
  <td style="height: 82px"> </td>
  </tr>
  </table>
  <table width = "750px">
  <tr><td style="height:25px">
  &nbsp;&nbsp;</td></tr>
  </table>
  <table width = "750px" style ="height :400px">
  <tr>
  <td style="width :200px; height: 390px; text-align: center;">
  </td>
  <td style="vertical-align: middle; text-align: center">
  <table style="width: 440px; height: 318px" >
  <tr>
  <td colspan = "2">
  个人新用户注册</td> 
  </tr>
  <tr>
  <td style="width: 140px" >
  用户名:</td>
  <td style="width: 300px" >
  <asp:TextBox ID="UserName" runat="server"></asp:TextBox>
  </td> 
  </tr>
  <tr>
  <td style="width: 140px">
  密码:</td>
  <td style="width: 300px">
  <asp:TextBox ID="Password" TextMode = "Password" runat ="server" Width="150px"></asp:TextBox> 
  </td>
  </tr>
  <tr>
  <td style="width: 140px">
  确认密码:</td>
  <td style="width: 300px">
  <asp:TextBox ID = "ConfirmPassword" TextMode = "Password" runat = "server" Width="150px"></asp:TextBox>
  </td> 
  </tr>
  <tr>
  <td style="width: 140px">
  性别:</td>
  <td style="width: 300px">
  <asp:RadioButton ID = "Male" runat = "server" Text = "男" GroupName = "Sex" Checked = "true" />
  <asp:RadioButton ID = "Famale" runat = "server" Text = "女" GroupName = "Sex" Checked = "false" />
  </td>
  </tr>
  &