页面之间传值的方法(至少写一种),如何接收传过来的值?

解决方案 »

  1.   

    session
    application
    cookie
    google
      

  2.   

    http://www.cnblogs.com/pig_wang/archive/2010/04/26/1721244.html
      

  3.   

     方法1  int SID = Int32.Parse(Request.Params["sid"]);
    方法2 session
    方法3 Cookies我一般都用第一种,所以有代码
      

  4.   

     方法1  int SID = Int32.Parse(Request.Params["sid"]);
    方法2 session
    方法3 Cookies我一般都用第一种,所以有代码
      

  5.   

    1,response.redirect("webform1.aspx?msg="+message); 2,Session
      

  6.   

    用?传参Request.QueryString[""]接收
      

  7.   

    用数据库也可以传值Server.Transfer
      

  8.   

    地址栏,Session,Form提交,Application。
      

  9.   

    方法1 int SID = Int32.Parse(Request.Params["sid"]);
    方法2 session
    方法3 Cookies我一般都用第一种,所以有代码
      

  10.   

    <a href="www.110.com?topicId=5"></a> 当跳到110 这个页面是 你可以用 TopicId =Integer.parseInt(request.getParamter("topicId"));
      

  11.   

    server.Transfer
    get
    session
    postbackurl
    queryString
      

  12.   

    Request[""]既可以接受Post过来的值也可以接受Get过来的值
    Request.QueryString接受get传过来的值
    Request.Param接受post过来的值
    以上接受表单提交
    还可以把参数写在url后面 www.url.aspx?id=3&name=na  这属于get方式传值   用request[]或者Request.QueryString接受还有Session
    Cookie
      

  13.   

    string id = "";
     id = Request.QueryString["id"].ToString();