我正在使用 webmatrix 3 创建 ASP.NET 网页,其中一个页面有一个表单开始和结束标签,但是每当我启动这个页面时,我在浏览器中收到一个服务器错误,告诉我结束</form>
标签没有打开标签,但我仔细检查了 IDE (webmatrix 3) 没有显示错误。我确定我错过了一些东西,但这里是代码。注意:这不是整个文件,它只是 html<form>
部分。
<form method="post" action="">
<fieldset style="margin-right: 210px">
<legend><strong>Fill in the form to register an employee.</strong></legend>
<table style=" border: 0px;">
<tr>
<td style="text-align: right; border: 0px;"></td>
<td style="border: 0px;"></td>
</tr>
<tr>
<td style="text-align: right; border: 0px;"><label for="employee_ssn">Employee's SSN: </label></td>
<td style="border: 0px;"><input type="text" size="50px" name="employee_ssn" value=""></td>
</tr>
<tr>
<td style="text-align: right; border: 0px;"><label for="first_name">First Name: </label></td>
<td style="border: 0px;"><input type="text" size="50px" name="first_name" value=""></td>
</tr>
<tr>
<td style="text-align: right; border: 0px;"><label for="middle_name">Middle Name: </label></td>
<td style="border: 0px;"><input type="text" size="50px" name="middle_name" value=""></td>
</tr>
<tr>
<td style="text-align: right; border: 0px;"><label for="last_name">Last Name: </label></td>
<td style="border: 0px;"><input type="text" size="50px" name="last_name" value=""></td>
</tr>
<tr>
<td style="text-align: right; border: 0px;"><label for="dob">Date Of Birth: </label></td>
<td style="border: 0px;"><input type="date" size="50px" name="dob" value=""></td>
</tr>
<tr>
<td style="text-align: right; border: 0px;"><label for="gender">Gender: </label></td>
<td style="border: 0px;"><input type="radio" name="sex" value="male">Male<br>
<input type="radio" name="sex" value="female">Female</td>
</tr>
<tr>
<td style="text-align: right; border: 0px;"><label for="blood_type">Blood Type: </label></td>
<td style="border: 0px;"><select name="blood_type">
<option value="AB+">AB+</option>
<option value="AB-">AB-</option>
<option value="A+">A+</option>
<option value="A-">A-</option>
<option value="B+">B+</option>
<option value="B-">B-</option>
<option value="O">O</option>
</select></td>
</tr>
<tr>
<td style="text-align: right; border: 0px;"><label for="phone">Telephone Number: </label></td>
<td style="border: 0px;"><input type="text" size="50px" name="phone" value=""></td>
</tr>
<tr>
<td style="text-align: right; border: 0px;"><label for="mobile">Mobile Number: </label></td>
<td style="border: 0px;"><input type="text" size="50px" name="mobile" value=""></td>
</tr>
<tr>
<td style="text-align: right; border: 0px;"><label for="address">Address: </label></td>
<td style="border: 0px;"><input type="text" size="50px" name="address" value=""></td>
</tr>
<tr>
<td style="text-align: right; border: 0px;"><label for="email">e-mail Address: </label></td>
<td style="border: 0px;"><input type="text" size="50px" name="email" value=""></td>
</tr>
<tr>
<td style="text-align: right; border: 0px;"><label for="job">Occupation: </label></td>
<td style="border: 0px;"><input type="text" size="50px" name="job" value=""></td>
</tr>
<tr>
<td style="text-align: right; border: 0px;"><label for="spec_degree">Specialization Degree: </label></td>
<td style="border: 0px;"><input type="text" size="50px" name="spec_degree" value=""></td>
</tr>
<tr>
<td style="text-align: right; border: 0px;"><label for="depatment">Department: </label></td>
<td style="border: 0px;"><input type="text" size="50px" name="depatment" value=""></td>
</tr>
<tr>
<td style="text-align: right; border: 0px;"><label for="nationality">Nationality: </label></td>
<td style="border: 0px;"><input type="text" size="50px" name="nationality" value=""></td>
</tr>
</tr>
<tr>
<td style="text-align: right; border: 0px;"><label for="working_hours">Working Hours: </label></td>
<td style="border: 0px;"><input type="text" size="50px" name="working_hours" value=""></td>
</tr>
<tr>
<td style="text-align: right; border: 0px;"><label for="emergency_contact">Emergency Contact: </label></td>
<td style="border: 0px;"><input type="text" size="50px" name="emergency_contact" value=""></td>
</tr>
<tr>
<td style="text-align: right; border: 0px;"><label for="pwd">Password: </label></td>
<td style="border: 0px;"><input type="password" size="50px" name="pwd" value=""></td>
</tr>
<tr>
<td style="text-align: right; border: 0px;"><label for="confirm_pwd">Confirm Password: </label></td>
<td style="border: 0px;"><input type="password" size="50px" name="confirm_pwd" value=""></td>
</tr>
<tr>
<td style="text-align: right; border: 0px;"><label for="notes">Notes: </label></td>
<td style="border: 0px;"><textarea name="notes"></textarea></td>
</tr>
<tr>
<td style="border: 0px;"> <input type="submit" value=" Register"/></td>
</tr>
</table>
</fieldset>
</form>