单击事件
{
Response.Redirect("yyy.aspx?aa="+textbox.text);
}
  

解决方案 »

  1.   


       protected void buttn_Click(object sender, EventArgs e)
        {
          //把aa传到yyy页面
          Response.Redirect("yyy.aspx?aa="+textbox.Text); 
        }
      

  2.   

    页面之间的传递啊,用session、cookies等那些东西吧
      

  3.   

    1:可以用URL,?name=string(string)是文本框的值
    2:button有一个PostBackUrl="2.aspx",这样你就可以在2.aspx页面获取所有button所在页面的数据,通过Page.PreviousPage
      

  4.   

    最简单的:
    xx.aspx?id=xxx
    这种方式
      

  5.   


    //在yyy页面定义字符串了接值
    string aaa = Request.QueryString["aa"].ToString();
      

  6.   

    session容易丢,cookies也比较麻烦
    如果你的数据量不是很大,用我说的就行了
      

  7.   

     方法很多,楼上的那就是,常用的一种!到
    了另一个页面如楼上:yyy.aspx 
    你用Request.QueryString["aa"]取值!
    你到google上搜索,asp.net页面传值,
    有很多,在不同情况的,传值的方法!!!
      

  8.   

    protected void buttn_Click(object sender, EventArgs e)
        {
          //把aa传到yyy页面
          Response.Redirect("Index.aspx?name="+textbox.Text.Trim()); 
    Response.Write("<scrpt>window.location.href='Index.aspx?name="+textbox.Text.Trim()';</script>")
        }Index.asp.cs
    string name=Request.QueryString["name"].ToString();
      

  9.   

    单击事件 

    Response.Redirect("yyy.aspx?aa="+textbox.text); 

    另一页面 
    string aaa = Request.QueryString["aa"].ToString();aaa就是你需要的值
      

  10.   

    传值结合这个弹出页面
        function OpenClickWindow(str)
    {
       var iWidth=?; //窗口宽度
               var iHeight=?;//窗口高度
               var iTop=(window.screen.height-iHeight)/2;
               var iLeft=(window.screen.width-iWidth)/2;     if(strNum=='')
        strNum='?';
        var win=window.open("URL?Pid="+str,"web_Module","toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=0,resizable=1,left="+iLeft+",top="+iTop+",width="+iWidth+",height="+iHeight);
            win.focus();
    return false;
    }
    然后就是button的onclick事件了,带的参数就是你要传的textbox的值
      

  11.   


        function OpenClickWindow(str)
            {
               var iWidth=?; //窗口宽度
               var iHeight=?;//窗口高度
               var iTop=(window.screen.height-iHeight)/2;
               var iLeft=(window.screen.width-iWidth)/2;
    var win=window.open("URL?Pid="+str,"窗口名","toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=0,resizable=1,left="+iLeft+",top="+iTop+",width="+iWidth+",height="+iHeight);
                win.focus();
                return false;
            }
      

  12.   

    除了上面所提及的,下面这种,也不防参考参考:
    在.net中,如果通过Button传值,它有一种PostBackUrl方法:
    Default.aspx:
    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
    <asp:Button ID="Button1" runat="server" Text="Button"  PostBackUrl="~/Default2.aspx" />Default2.aspx:
    <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label> protected void Page_Load(object sender, EventArgs e)
        {
            this.Label1.Text = ((TextBox)PreviousPage.FindControl("TextBox1")).Text;
        }
      

  13.   

    我比较弱弱,都是用Session传的.单击事件中
    {
       Session["a"]=textbox.Text.ToString();
       Response.Redirect("//传到的页面"); 
    }
    在传到的页面中Page_Lode中
    {
       this.textbox1.Text=Session["a"].Tostring();
    }只要你不关闭页面Session就不会消失,你要跳到其他页面,这个Session["a"]里的值依然存在.
    不知道这样行不行?