DataNavigateUrlFormatString="javascript:window.open('Desk.aspx?ItemID={0}','','toolbar=no,status=0,location=no,resizable=no,menubar=no,scrollbars=auto,top=10,left=10,width=700,height=700')"
我在用这个javascript链接出一个窗口,可是还会一同跳出另外的一个空白窗口,不知道怎么去调空白的窗口。请高手指点

解决方案 »

  1.   

    你用模板列<asp:TemplateColumn HeaderText="名称">
    <HeaderStyle Wrap="False"></HeaderStyle>
    <ItemTemplate>
    <a href="JavaScript:window.open('a.htm')">
    测试
    </a>
    </ItemTemplate>
    </asp:TemplateColumn>
      

  2.   

    页面中加入
    <body>
    <base target="_self">
      

  3.   

    把你的第二个参数改成"_blank"
      

  4.   

    如果你就是想在原来的页面中打开新页面,第二个参数改为"_self"
      

  5.   

    window.open('Desk.aspx?ItemID={0}','_self','toolbar=no,status=0,location=no,resizable=no,menubar=no,scrollbars=auto,top=10,left=10,width=700,height=700')"
      

  6.   

    不行,target="_self"和_blank 都会有空白的窗口出现的。
      

  7.   

    看看是不是你的Desk.aspx的原因啊
      

  8.   

    DataNavigateUrlFormatString改为navigatorurl试一下