到底哪里写错啦,我都要哭死了,countPlan、YearTime_、MonthTime_都是变量

解决方案 »

  1.   

    Response.Redirect("UpSecondCatial.aspx?countPlan="+countPlan+"YearTime="+YearTime_+"MonthTime="+MonthTime_);
      

  2.   

    Response.Redirect("UpSecondCatial.aspx?countPlan="+countPlan+"YearTime="+YearTime_+"MonthTime="+MonthTime_);
      

  3.   

    Response.Redirect("UpSecondCatial.aspx?countPlan="+countPlan.ToString()+"YearTime="+YearTime_.ToString()+"MonthTime="+MonthTime_.ToString());
      

  4.   

    Response.Redirect("UpSecondCatial.aspx?countPlan="+countPlan+"&YearTime="+YearTime_+"&MonthTime="+MonthTime_);
      

  5.   

    不知道你的这些变量是什么数据类型,现在我帮你改的都是string型的
    Response.Redirect("UpSecondCatial.aspx?countPlan='"+countPlan+"'&YearTime='"+YearTime_+"'&MonthTime='"+MonthTime_+"');
      

  6.   

    Response.Redirect("UpSecondCatial.aspx?countPlan="+countPlan+"&YearTime="+YearTime_+"&MonthTime="+MonthTime_);
      

  7.   

    这样写不对,传到另外一个页面
    string countPlan_ = Request.QueryString["countPlan"].ToString();
    编译后
    countPlan_="344YearTime=2006MonthTime=4"
      

  8.   

    编译后
    countPlan_="344YearTime=2006MonthTime=4"
    ————————————————
    因为少了&
    Response.Redirect("UpSecondCatial.aspx?countPlan=" + countPlan + "&YearTime=" + YearTime + "&MonthTime=" + MonthTime );
    另外楼主要注意自己用的是什么变量类型
      

  9.   

    Response.Redirect("UpSecondCatial.aspx?countPlan="+countPlan+"&YearTime="+YearTime_+"&MonthTime="+MonthTime_);
    在试
      

  10.   

    Response.Redirect("UpSecondCatial.aspx?countPlan="+countPlan.ToString()+"&YearTime="+YearTime_.ToString()+"&MonthTime="+MonthTime_.ToString()+"");