日期:2014-05-20  浏览次数:20766 次

HyperLink 控件怎么实现往两个页传值
<asp:TemplateField   HeaderText= "编号 ">
<ItemTemplate>
<asp:HyperLink   ID= "HyperLink1 "   runat= "server " ToolTip= "点击显示详细情况 "   NavigateUrl= ' '
</asp:HyperLink>
</ItemTemplate>
</asp:TemplateField>
我把GRIDVIEW中的HyperLink控件模板化了,想实现同时往两个页   a.aspx   b.aspx传值。打开的是b.aspx     请问如何实现。

------解决方案--------------------
<asp:TemplateField HeaderText= "编号 ">
<ItemTemplate>
<a href= " " onclick= 'setValues( " <%#Eval( "xxxxx ")%> ");return false '/>
</ItemTemplate>
</asp:TemplateField>


<script>
functiom setValues(s)
{
window.open( "a.aspx?par= " +s, "_blank ")
window.open( "b.aspx?par= " +s, "_blank ")
window.open( "c.aspx?par= " +s, "_blank ")
window.open( "d.aspx?par= " +s, "_blank ")
}
</script>