GridView中超连接的问题. 用javascript的window.open(url,name,features)比如:window.open("./xxx.aspx","aa","width=100px,height=30px,menubar=no.....") 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 这个我也知道啊.问题是怎么写到HyperLinkFIeld里面.. rowdatabind 事件里 对每行的链接 添加属性 window.open("./xxx.aspx","aa","width=100px,height=30px,menubar=no.....")参数里指定 <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! GridView编辑列中添加HyperLinkFIeld字段,然后在右边的属性中数据的DatanavigateUrlFields中填上数据表中的主键,DatanagavigateUrlFormatString中填上跳转的页面,DataTextField中填上数据表中的对应列名,HeaderText填上你要显示的东西,就OK了! <div></div>用代码在层中插入一些内容 在同一台电脑上,同时打开多个不同账号的个人网站时,会出现Session共用情况,导致不同账号显示相同信息 表结构怎么设计才能搞高性能 打开子窗口的显示问题 客户端问题,help 下午有个很重要的棉试!! 如何在客户端打开服务器的文本文件,100分急求!!!! 精确的北京时间 是如何获取的 datagrid添加了模板列以后如何数据绑定??? 请问:向数据库中插入一条记录后,如何得到该条记录在数据库中的ID? ■■■■■■FCKEditor的文件上传问题,高手帮忙啊!最后20分!~ asp.net数据库编程 配置文件时出错
<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!