加一个hidden runat=server把返回值附给hidden 在pageload中取hidden的值

解决方案 »

  1.   

    http://xml.sz.luohuedu.net/xml/ShowDetail.asp?id=49ML4AO8-5PB3-4KNY-NJZD-LJOIOXV4M1X4window.showModalDialog('Common_Query.aspx?id=canshu1',null)
      

  2.   

    Response.Write("<script>window.showModalDialog'Common_Query.aspx?id="+canshu1+"')/script>");
      

  3.   

    http://www.csdn.net/Develop/read_article.asp?id=15113
      

  4.   

    现在我是想在通过window.showModalDialog打开的查询窗体Common_Query.aspx 的onload事件中取得数据显示窗口main.aspx穿过来的值
      

  5.   

    net_lover(孟子E章) ( ) 
    主窗体
    private void Button2_Click(object sender, System.EventArgs e)
    {
    Response.Write("<script>window.showModalDialog('Common_Query.aspx?name=canshu1',null)/script>");
    }
    我在查询窗体Common_Query.aspx 的onload事件中取得数据显示窗口main.aspx穿过来的值tableName=Request.QueryString["name"].ToString();
    包错
      

  6.   

    net_lover(孟子E章) ( 
    我参照你的例子,为了防止带开新窗口我用到框架,
    search.aspx
    <frameset rows="0,*">
    <frame src="about:blank">
    <frame src="Search_Reg.aspx">
    </frameset>但是showModalDialog(‘框价页)
    ’string id=Request["id"];取不到值如果直接showModalDialog (Search_Reg.aspx)带的参数就可以取到
      

  7.   

    http://www.csdn.net/develop/Read_Article.asp?Id=15113
    http://expert.csdn.net/Expert/topic/2001/2001793.xml?temp=.1702082
    http://expert.csdn.net/Expert/topic/1911/1911975.xml?temp=.4667322
      

  8.   

    关于模态窗口(showModalDialog)的专题讨论!
    1.模态窗口的打开
    2.模态窗口的关闭
    3.模态窗口的传递参数。
    4.其他。
    1.window.showModalDialog("DialogPage.aspx","newwin","dialogHeight: 200px; dialogWidth: 150px; dialogTop: 458px; dialogLeft: 166px; edge: Raised; center: Yes; help: Yes; resizable: Yes; status: Yes;");2.window.close();3.传值
    ParentPage.aspx:
    window.showModalDialog("DialogPage.aspx?para1=aaa&para2=bbb");DialogPage.aspx:
    string str1=Request.QueryString["para1"].toString();
    string str2=Request.QueryString["para2"].toString();返回值
    DialogPage.aspx:
    window.returnValue="aaa";ParentPage.aspx:
    var str=window.showModalDialog("DialogPage.aspx");
      

  9.   

    up
    我也遇到几乎相同的问题.
    我是有一个主窗体main.aspx
    点按钮打开另一个窗体pop.aspx,
    (注:pop.aspx里有一个datagrid.)
    点击datagrid里的超级连接,
    到主窗体并把datagrid的值传到main.aspx
    .
    各位高手,望积极讨论....