当showModalDialog打开的窗口Page_Load只执行一次,导致

if (!IsPostBack){}

中代码没有执行,查了相关资料,原因在于第一次之后加载都是从缓存中直接获取之前的页面,故需清除缓存,

在<head></head>中加入

<meta http-equiv="Pragma" content="no-cache"/>
<meta http-equiv="Cache-Control" content="no-cache"/>
<meta http-equiv="Expires" content="0"/>

相关文章:

  • 2022-12-23
  • 2021-07-23
  • 2021-10-31
  • 2022-12-23
  • 2021-10-03
  • 2022-12-23
  • 2022-02-14
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-03-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案