post之后如何转入到提交的结果页面
我是post提交的查询,提交之后我想转到查询的结果页面,而不是在本页。请问应该加什么属性或怎么修改。public class SearchSubmit : IHttpHandler--------------------编程问答-------------------- 没人知道哦,这么常用的 --------------------编程问答-------------------- Response.Redirect
{
string re_Form = CDRequest.GetDecodeRequest("ID_Form");
string re_Name = CDRequest.GetDecodeRequest("ID_Name");
string re_Dist = CDRequest.GetDecodeRequest("ID_Dist");
string re_Tele = CDRequest.GetDecodeRequest("ID_Tele");
string re_Tags = CDRequest.GetDecodeRequest("ID_Tags");
public void ProcessRequest(HttpContext context)
{
switch (re_Form)
{
case "member":
Member();
break;
case "storage":
Storage();
break;
case "credit":
Credit();
break;
}
context.Response.ContentType = "text/plain";
context.Response.Write("Hello World");
}
private void Member()
{
string Url = "http://localhost:3331/Corporation/PageList.aspx";
string postDataStr = "ID_Name=" + re_Name + "&ID_Dist=" + re_Dist + "&ID_Tele=" + re_Tele + "&re_Tags=" + re_Tags;
SendDataByPost(Url, postDataStr);
}
private void Storage()
{
}
private void Credit()
{
}
#region 同步通过POST方式发送数据
/// <summary>
/// 通过POST方式发送数据
/// </summary>
/// <param name="Url">url</param>
/// <param name="postDataStr">Post数据</param>
/// <returns></returns>
public void SendDataByPost(string Url,string postDataStr)
{
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(Url);
request.Method = "POST";
request.ContentType = "application/x-www-form-urlencoded";
request.ContentLength = postDataStr.Length;
Stream myRequestStream = request.GetRequestStream();
StreamWriter myStreamWriter = new StreamWriter(myRequestStream, Encoding.GetEncoding("gb2312"));
myStreamWriter.Write(postDataStr);
myStreamWriter.Close();
//HttpWebResponse response = (HttpWebResponse)request.GetResponse();
//Stream myResponseStream = response.GetResponseStream();
//StreamReader myStreamReader = new StreamReader(myResponseStream, Encoding.GetEncoding("utf-8"));
//string retString= myStreamReader.ReadToEnd();
//myStreamReader.Close();
//myResponseStream.Close();
//return retString;
}
#endregion
Server.Transfer
Sever.Execute
这三种页面跳转? --------------------编程问答--------------------
这样转了我 post的内容有效果吗? 我感觉没有吧,只是单纯的url跳转
补充:.NET技术 , C#