在父窗体的代码里给按钮添加事件:
Page.RegisterStartupScript("openWin", "<script language=\"javascript\">function OpenTheNewWin(){"
    + "var ID=window.showModalDialog('memberShop.aspx',window,'help:no;');if(ID!=null){document.getElementById('父窗体页面控件ID').value=ID;}}</script>");
在模式窗口里写:
e.Item.Attributes.Add("onclick","window.returnValue="+e.Item.Cells[1].Text+";window.close();");

相关文章:

  • 2021-12-15
  • 2022-12-23
  • 2022-12-23
  • 2021-12-10
  • 2022-12-23
  • 2021-10-15
  • 2022-12-23
  • 2021-12-03
猜你喜欢
  • 2021-12-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案