用javascript的window.open(url,name,features)
比如:
window.open("./xxx.aspx","aa","width=100px,height=30px,menubar=no.....")

解决方案 »

  1.   

    这个我也知道啊.问题是怎么写到HyperLinkFIeld里面..
      

  2.   

    rowdatabind 事件里  对每行的链接 添加属性
      

  3.   

    window.open("./xxx.aspx","aa","width=100px,height=30px,menubar=no.....")参数里指定
      

  4.   

    <asp:hyperlinkfield id=lnk runat=server DataNavigateUrlField="ProductID" NavigateUrlFormatString="javascript:window.open('Show.aspx?eid={0}', 'win', 'width=100p,height=200px');void(0);" text=open></asp:HyperLinkfield>需要多个参数,请使用<ItemTemplate>
                <a href="Javascript:window.open('product.aspx?proid=<%# Eval("ProductID") %>&cid=<%# Eval("Category.CategoryID")%>', 'win', 'width=100p,height=200px');void(0);"><%# Eval("ProductName") %></a>                      
            </ItemTemplate> OR
          
            <ItemTemplate>
                <asp:HyperLink ID="HyperLink1" NavigateUrl='<%# String.Format("Javascript:window.open(\"Show.aspx?eid={0}&cid={1}\", \"win\", \"width=100p,height=200px\");void(0);", Eval("ProductID"), Eval("Category.CategoryID")) %>' runat="server"><%# Eval("ProductName") %></asp:HyperLink>
           Hope Helpful!
      

  5.   

    GridView编辑列中添加HyperLinkFIeld字段,然后在右边的属性中数据的DatanavigateUrlFields中填上数据表中的主键,DatanagavigateUrlFormatString中填上跳转的页面,DataTextField中填上数据表中的对应列名,HeaderText填上你要显示的东西,就OK了!