页面A 执行了btnSave_Click时间到页面B
Page.ClientScript.RegisterStartupScript(typeof(string), "js", "<script>window.showModalDialog('B.aspx','shore','dialogWidth=850px;scrollbars=yes;dialogHeight=620px')</script>");同样在页面B btnSave_Click事件中保存数据成功后页面B关闭并使父页面A跳转至C页面
AddResponseWriteScript("alert('成功');location('C.aspx');window.close();");而我如上的代码是B页面关闭后重新开了个窗体跳转至C页面 如何让原来父窗体A跳转至C 
求大神帮忙!!急急急~~

解决方案 »

  1.   

    Page.ClientScript.RegisterStartupScript(typeof(string),   "js ",   " <script> window.showModalDialog( 'B.aspx ', 'shore ', 'dialogWidth=850px;scrollbars=yes;dialogHeight=620px ');window.location='C.aspx' </script> "); btnSave_Click事件中保存数据成功后页面B关闭并使父页面A跳转至C页面
    AddResponseWriteScript( "alert( '成功 ');window.close(); "); 
      

  2.   

    Page.ClientScript.RegisterStartupScript(typeof(string), "js ", " <script> var ret=window.showModalDialog( 'B.aspx ', 'shore ', 'dialogWidth=850px;scrollbars=yes;dialogHeight=620px ');if(ret) window.location='C.aspx' </script> ");根据条件进行处理B页面里面写
    window.returnValue="xx"
    window.close()