摘要:
父页面:aspx 按钮调用的方法function OnClick(){var returnValue = window.showModalDialog(。。。。。。); if (returnValue != null && returnValue == 'OK') { 页面调用方法,模式对话框关闭后调用 }}模式对话框:aspx 关闭按钮function OnClick(){w... 阅读全文
posted @ 2010-05-19 14:20
carekee
阅读(292)
评论(0)
推荐(0)
摘要:
有时修改了某些数据,然后通过ShowModalDialog来显示,这时通常显示出来的数据还是上一次的数据 可能ShowModalDialog缓存机制的问题,这时你就需要手动的去清除缓存或者写一些代码…… HTML方面 <meta http-equiv="pragram" content="no-cache"> 禁止浏览器从本地缓存中调阅页面。 网页不保存在缓存... 阅读全文
posted @ 2010-05-19 14:14
carekee
阅读(126)
评论(0)
推荐(0)
摘要:
问题:在showModalDialog打开的页面上有个GridView控件,GridView中有分页导航,点击导航按钮时,会在showModalDialog页面外弹出一个新的页面.解决方法:在showModalDialog页面中的<Head></Head>加入<base target="_self" /> 即可.如<head><base tar... 阅读全文
posted @ 2010-05-19 14:12
carekee
阅读(145)
评论(0)
推荐(0)
摘要:
界面说明:父页面(CangKuEdit.aspx)中,按“新增”(id=imgbtnAdd),弹出CangKuAdd.aspx子页面。子页面(CangKuAdd.aspx )中,按“确定”(id=btnSubmit),新增数据到数据库、关闭子页面、刷新父页面DataGrid 以反映数据的异动,注意只能刷新DataGrid,其他控件里输入的值要保留!分... 阅读全文
posted @ 2010-05-19 09:54
carekee
阅读(1654)
评论(0)
推荐(0)