怎么把一个页面的DropDownlist中选中的值传到另外一个页面中的TextBox,我现在就想把它选中的值更新下!谢谢啊~

解决方案 »

  1.   

    url传值
    跳转到另一个页面时:
    response.redict("newpage.aspx?id="+DropDownlist.SelectValue)newpage:string id=Request.QueryString["id"]==null?"":Request.QueryString["id"].ToString();
      

  2.   


     Response.Redirect("newpage.aspx?id=" + DropDownlist1.SelectValue);
      

  3.   

       Session["drop"] = this.DropDownList1.SelectedValue;
     this.TextBox1.Text = Session["drop"].ToString();
      

  4.   

    呵呵,你还可以存在session和cookie里。但谁会这样做呢。楼上两位的做法才比较好。
      

  5.   

    Response.Redirect("Default2.aspx?id="+this.DropDownList1.SelectedValue); this.TextBox1.Text = Request.QueryString["id"];
      

  6.   

    尽量不要用SESSION 
    这会增加服务器的压力