日期:2014-05-16 浏览次数:20431 次
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>用户信息</title>
</head>
<body>
<form action="Default.aspx" method="post">
<table>
<tr>
<td>姓名</td>
<td>
<input type="text" name="NameText"/>
</td>
</tr>
<tr>
<td>性别</td>
<td>
<input type="text" name="SexText"/>
</td>
</tr>
<tr>
<td>年龄</td>
<td>
<input type="text" name="AgeText"/>
</td>
</tr>
</table>
<input type="submit" name="Submit" value="提交"/>
</form>
</body>
</html>
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!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>
<h3>请您确认您的个人信息</h3>
<%
string Name = Request["NameText"];
string Sex = Request["SexText"];
string Age = Request["AgeText"];
string ReturnStr = Name + "<br/>" + Sex + "<br/>" + Age;
Response.Write(ReturnStr);
%>
</body>
</html>