2,可以用Session传DataSet
其他的好像可以做成类似的哈希表什么的,放到Session中传
dropdownlist好像有相应的事件(好像是什么IndexChange吧)啊

解决方案 »

  1.   

    因为页面要自动刷新,不能用session的,
    dropdownlist的indexchange事件你有没有代码?谢谢
      

  2.   

    Using Server.Transfer
    This is somewhat complex but sophisticated method of passing values across pages. Here you expose the values you want to access in other pages as proprties of the page class. This methods require you to code extra properties that you can access in another web form. However, the efforts are worth considering. Overall this method is much cleaner and object oriented than earlier methods. The entire process works as follows: 
    Create the web form with controls 
    Create property Get procedures that will return control values 
    Provide some button or link button that posts the form back 
    In the button click event handler call Server.Transfer method that will transfer execution to the specified form 
    In the second form you can get a reference to the first form instance by using Context.Handler property. Then you will use the get properties we created to access the control values. 
    The code to accomplish this is somewhat complex and is shown below: 
    Source Web Form
    Add following properties to the web form: 
    public string Name
    {
    get
    {
    return TextBox1.Text;
    }
    }public string EMail
    {
    get
    {
    return TextBox2.Text;
    }
    }Now, call Server.Transfer. 
    private void Button1_Click
    (object sender, System.EventArgs e)
    {
    Server.Transfer("anotherwebform.aspx");
    }Destination Web Form
    private void Page_Load
    (object sender, System.EventArgs e)
    {
    //create instance of source web form
    WebForm1 wf1;
    //get reference to current handler instance
    wf1=(WebForm1)Context.Handler;
    Label1.Text=wf1.Name;
    Label2.Text=wf1.EMail;
    }
      

  3.   

    伊,还有一个一样的?页面刷新为什么就不能用session?我在另一贴已经回复了,这个贴也要分些分给我(有些霸道)
      

  4.   

    to spring ,这个在411,还是4guysfrom什么那个网站看过,传了
    datagird,我会,传listbox和数组又怎样呢。
      

  5.   

    哦,大家都好,都有分给的。
    我这个其实是想对另外一张贴(未解决)的延续。
    session可以传是肯定了。我用的是iframe,要从iframe传给
    父帧,。所以用session不好
      

  6.   

    有兴趣看看这篇文章吧。因为没解决,还挂着赛太阳
    http://www.csdn.net/expert/topic/942/942752.xml?temp=.4136927