页面A.aspx里面有个DataGrid,单独浏览,分页什么的都正常.
页面B.aspx通过window.showModalDialog("A.aspx")打开页面A.aspx,显示也正常,但是分页时就自动弹出另一窗口,出错,地址栏里的内容是javascript:__doPostBack('DataGrid1$_ctl8$_ctl1','')
帮忙看看,是什么问题啊?

解决方案 »

  1.   

    要不在模态窗口页里再加一个iframe,把a.aspx放到iframe中试试
      

  2.   

    a.aspx中放一个iframe,把datagrid和分页控件放iframe中试试
      

  3.   

    使用 showModalDialog 方法打开的页面不能在转到其他页面了
    你可以在 A.ASPX 页面放一个 iframe 框架,然后把 datagrid 页放在另外一个页面,把把此页面放到A.ASPX页的框架里面,这可以解决你这个问题
      

  4.   

    window.showModalDialog("A.aspx")改为:类似这样
    e.Item.Cells[2].Text = "<a onclick=window.open('"+index.aspx?ContactNo="+e.Item.Cells[7].Text.ToString()+"','popuppage','width=400,height=380,top=130,left=200,scrollbars,resizable')  style='CURSOR: hand'>"+e.Item.Cells[2].Text.ToString()+"</a>";
      

  5.   

    在<head></head>中加上<base target="_self">
      

  6.   

    在<head></head>中加上<base target="_self">
      

  7.   

    <base target="_self">