私はVisual Studio 2012でこのファイルを作成しました。調査の最初のページは完全にうまく動作しますが、「500内部サーバーエラー」を表示するように指示すると、プロジェクトにはコンパイルエラーはありません。私はfilezillaを使用してこのファイルを開いています誰でも私を助けてください。 survey.aspから値を取得し、値を次の形式で表形式で表示する単純なプログラムです。Ftp asp.netでfilezillaを使用
------ survey.asp -----------------------------
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title>Survey Form</title>
</head>
<body>
<form method="post" action="display.asp">
<br/>
Please Enter Your Age <input type="text" name="first" value="<%=request("Age")%>"/> <br /> <br/>
Please Enter Your Salary $ <input type="text" name="sal" value="<%=request("salary")%>"/> <br /><br/>
What level of Education Have You Completed : <br/>
<input type="radio" name="radiobutton" value="<%=request("education")%>"/> Some High School <br />
<input type="radio" name="radiobutton" value="<%=request("education")%>"/> Completed high School <br />
<input type="radio" name="radiobutton" value="<%=request("education")%>"/>Some College Education <br />
<input type="radio" name="radiobutton" value="<%=request("education")%>"/> Completed a B.S Degree <br />
<input type="radio" name="radiobutton" value="<%=request("education")%>"/> Completed a Master Degree <br /> <br/>
<input type="submit" value="Send Survey" />
</form>
</body>
</html>
- --------- display.asp ---------------------------------
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%
Age = request.form("first")
salary = request.form("sal")
education = request.form("radiobutton").ToString();
if age="" or salary="" or education="" then
%>
<html>
<head><title></title></head>
<body>
You must enter all the info
<form method="post " action="survey.asp">
<input type="hidden" name="age" value="<%=age%>" />
<input type="hidden" name="salary" value="<%=salary%>" />
<input type="hidden" name="education" value="<%=education%>" /> <br/>
<input type="submit" value="Return" />
</form>
</body>
</html>
<%
response.end
end if
%>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>Display Name</title>
</head>
<body>
You entered: <br />
<table>
<tr>
<td> <%=age%> </td>
<td> <%=salary%> </td>
<td> <%=education %> </td>
</tr>
</table>
<br />
</body>
</html>