showModalDialog 页面上GridView的分页问题

问题:

在showModalDialog打开的页面上有个GridView控件,GridView中有分页导航,点击导航按钮时,会在showModalDialog页面外弹出一个新的页面.

解决方法:

在showModalDialog页面中的<Head></Head>加入<base target="_self" /> 即可.如

<head>

<base target="_self" />
</head>

原文地址:https://www.cnblogs.com/zxktxj/p/2802418.html