js不是就可以搞定吗?
点击按钮打开新窗口的时候传递opener需要接收返回值的控件ID,新页面选择后传递回opener

解决方案 »

  1.   

    一样传
    string name="data";
    Response.Redirect("webform1.aspx?name=" +name);或者你用window.operner
      

  2.   

    Source Web Form
    private void Button1_Click
    (object sender, System.EventArgs e)
    {
    string url;
    url="anotherwebform.aspx?name=" + 
    TextBox1.Text + "&email=" + 
    TextBox2.Text;
    Response.Redirect(url);
    }Destination Web Form
    private void Page_Load
    (object sender, System.EventArgs e)
    {
    Label1.Text=Request.QueryString["name"];
    Label2.Text=Request.QueryString["email"];
    }也可以使用Session
      

  3.   

    上面的各位,你们用的都是.net出现前的老方法了,难道.net就没有提供更好的方法吗?
      

  4.   

    用Div不就可以了吗?而且速度也不慢啊
      

  5.   

    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;
    }Summary
      

  6.   

    可以试试:
    不要pop新窗口来选择,在一个页面做。
    用<ASP:Panel/>;选择之后填充的数据放一个Panel,供选择的数据放另一个Panel,用户选择是隐藏前一个Panel,显示后一个;选择完之后,在还原。
      

  7.   

    在页间传递服务器控件值
    ms-help://MS.VSCC/MS.MSDNVS.2052/cpguide/html/cpconpassingservercontrolvaluesbetweenpages.htm对这种情况好象不适合。
      

  8.   

    kenfil 所说的确是好方法。我看用showModelessDialog()应该也可以
      

  9.   

    你即然要弹出窗口让其选择(模式更好呀),
    我看用showmodaldialog()或showModelessDialog()最合适
    不存在asp.net与asp的什么区别,只要可以实现,且这也是一个好办法至于这种方式的参数传递就不用说了吧。
      

  10.   

    wnjer(WNJER) :
    showmodaldialog()或showModelessDialog()
    怎么做?
      

  11.   

    在页间传递服务器控件值
    ms-help://MS.VSCC/MS.MSDNVS.2052/cpguide/html/cpconpassingservercontrolvaluesbetweenpages.htm这个呢是在服务端的,可以正向的向下一个页面传递任何类型的属性,是不错。
    反过来,以上都没有看见有从第二个页面把参数返回到第一个页面服务端的方法,都是客户端的方法。
    有没有服务端的从第二个页面把参数返回到第一个页面,也要是可以传递任何类型的数据的方法?