what is this "另一个窗体"? a frame or iframe? add a client side onchange event handler to the DropDownList, show/hide your另一个窗体 there

解决方案 »

  1.   

    你的另一个窗体是新开的还是在本页面的,不如用PANEL放在一个页面好了,这样可以省去传参数还有保持输入的状态。
      

  2.   

    <div runat=server id=x></div>
    DropDownList的的SelectedIndexChanged的事件中,
      string str=@"<iframe src="+参数+" "+"frameborder=0  vspace=0  width =100% height =100%></iframe>";
    x.InnerHtml=str;
      

  3.   

    具体是,一堆控件要根据DropDownList的选择决定是否显示出来,所以我就把它们都仍在另一个窗体了,打算用frameset,可是刷新frameset时,原先用户输入的数据都没了.用panel的话只能用代码加控件吗?
      

  4.   

    OK了,原来直接把代码拷贝到panel里面就可以了,谢谢大家的帮助.