this.location.href="hehe.aspx?hehe=1";
这样传的值再后台怎么取啊,用C#,

解决方案 »

  1.   

    有点不明白意思,是取后面的传的参数吗!
    Page_Load:
    string str = "";
    if (Request["hehe"] != null)
    {
       str =  Request["hehe"].ToString();
    }
      

  2.   

    用request对象取啊 通过超连接和页面表单传递的参数都是用request对象取的
      

  3.   

    string haha = Request["hehe"].tostring();
      

  4.   

    string s = Request["hehe"];
    就可以
      

  5.   

    首先判断是否为null
    然后 string s = Request["hehe"].ToString();
      

  6.   

    string strHehe = String.Empty;
    if(Request.QueryString["hehe"] != null)
    {
         strHehe = Request.QueryString["hehe"];
    }