我想在cs文件中,插入一条代码 " http://www.xxx.com/x.php?name=" + Request["name"].ToString() 然后,在 http://www.xxx.com/x.php保存数据库(这边我会)。插入一条代码,不会写他那个cs是提交用户提交的表单,我想在插入一条代码(" http://www.xxx.com/x.php?name=" + Request["name"].ToString()),这样有提交的时候也能发到我网站上面去。请问怎么写,谢谢!

解决方案 »

  1.   

    答错
    是这样的
    string name = Request["name"].ToString();//获取
            Response.Redirect("http://www.xxx.com/x.php?name="+name+"");//重定向
      

  2.   

    就是一个跳转吗?Response.Redirect("http://www.xxx.com/x.php?name="+Request["name"].ToString());
      

  3.   

    就是重定向 Response.Redirect("http://www.xxx.com/x.php?name="+name+"");//重定向
      

  4.   

    是重定向 Response.Redirect("http://www.xxx.com/x.php?name="+name+"");//重定向
      

  5.   

    Response.Redirect("http://www.xxx.com/x.php?name="+Request["name"].ToString());
      

  6.   

    Response.Redirect("http://www.xxx.com/x.php?name="+Request["name"].ToString());