<asp:LinkButton ID="lnkHostID" runat="server" Text='<%#Eval("hostid") %>' OnClientClick='<%# String.Format("return GotohostList(\"hostid={0}\")", Eval("hostid")) %>'></asp:LinkButton>
<asp:LinkButton ID="lnkHostID" runat="server" Text='<%#Eval("hostid") %>' OnClientClick='<%# String.Format("return GotohostList(\"hostid={0}\")", Eval("hostid")) %>'></asp:LinkButton>
转载于:https://www.cnblogs.com/bulege/archive/2012/05/10/2494428.html