在a.aspx的安钮下写的
string str = TextBox1.Text;
string str2= TextBox2.Text;
Response.Redirect("b.aspx?id="+str+"&age="+str2);
点击安钮后B页面显示输入的数据,可是在地址栏里也显示出ID与Age了,我想把这两个参数隐藏起来或是改变一下内容, 不真正显示输入的数据
//===============================================a.aspx
<body>
<form action="b.aspx" method ="post">
<table style="width: 344px; left: 67px; position: relative; top: 73px; height: 130px;" border="0" cellpadding="0" cellspacing="0">
<tr>
<td style="width: 76px">
</td>
<td style="width: 158px">
</td>
<td style="width: 149px">
</td>
</tr>
<tr>
<td style="width: 76px; height: 26px;">
</td>
<td style="width: 158px; height: 26px">
<input id="Text1" type="text" name="userpwd" /></td>
<td style="width: 149px; height: 26px;">
</td>
</tr>
<tr>
<td style="width: 76px; height: 23px;">
</td>
<td style="width: 158px; height: 23px">
<input id="Submit1" type="submit" value="提交" /></td>
<td style="width: 149px; height: 23px;">
</td>
</tr>
</table>
</form>
</body>
//=================================== b.aspx HTM代码
<body>
<form id="form1" runat="server" method ="post">
</form>
</body>
//===b.aspx Page_Load事件
protected void Page_Load(object sender, EventArgs e)
{
string pwd = Request["userpwd"].ToString();
Response.Write(pwd);
}
//以上是POST方法,复制到相硬的页面位置就可以运行